pub struct HalfSeconds { /* private fields */ }
Implementations§
source§impl HalfSeconds
impl HalfSeconds
source§impl HalfSeconds
impl HalfSeconds
sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
Trait Implementations§
source§impl Clone for HalfSeconds
impl Clone for HalfSeconds
source§fn clone(&self) -> HalfSeconds
fn clone(&self) -> HalfSeconds
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HalfSeconds
impl Debug for HalfSeconds
source§impl Default for HalfSeconds
impl Default for HalfSeconds
source§fn default() -> HalfSeconds
fn default() -> HalfSeconds
Returns the “default value” for a type. Read more
source§impl From<HalfSeconds> for Duration
impl From<HalfSeconds> for Duration
source§fn from(m: HalfSeconds) -> Self
fn from(m: HalfSeconds) -> Self
Converts to this type from the input type.
source§impl Hash for HalfSeconds
impl Hash for HalfSeconds
source§impl Ord for HalfSeconds
impl Ord for HalfSeconds
source§fn cmp(&self, other: &HalfSeconds) -> Ordering
fn cmp(&self, other: &HalfSeconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HalfSeconds
impl PartialEq for HalfSeconds
source§impl PartialOrd for HalfSeconds
impl PartialOrd for HalfSeconds
source§impl Specifier for HalfSeconds
impl Specifier for HalfSeconds
source§type InOut = HalfSeconds
type InOut = HalfSeconds
The interface type of the specifier. Read more
source§fn into_bytes(value: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
fn into_bytes(value: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
Converts some bytes into the in-out type. Read more
source§fn from_bytes(
bytes: Self::Bytes,
) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
fn from_bytes( bytes: Self::Bytes, ) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
Converts the given bytes into the in-out type. Read more
impl Copy for HalfSeconds
impl Eq for HalfSeconds
impl StructuralPartialEq for HalfSeconds
Auto Trait Implementations§
impl Freeze for HalfSeconds
impl RefUnwindSafe for HalfSeconds
impl Send for HalfSeconds
impl Sync for HalfSeconds
impl Unpin for HalfSeconds
impl UnwindSafe for HalfSeconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)