pub struct DurationSmall(/* private fields */);
Implementations§
Trait Implementations§
Source§impl AsMut<Val> for DurationSmall
impl AsMut<Val> for DurationSmall
Source§impl AsRef<Val> for DurationSmall
impl AsRef<Val> for DurationSmall
Source§impl Clone for DurationSmall
impl Clone for DurationSmall
Source§fn clone(&self) -> DurationSmall
fn clone(&self) -> DurationSmall
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<E> Compare<DurationSmall> for Ewhere
E: Env,
impl<E> Compare<DurationSmall> for Ewhere
E: Env,
type Error = <E as EnvBase>::Error
fn compare( &self, a: &DurationSmall, b: &DurationSmall, ) -> Result<Ordering, <E as Compare<DurationSmall>>::Error>
Source§impl Debug for DurationSmall
impl Debug for DurationSmall
Source§impl From<&DurationSmall> for Val
impl From<&DurationSmall> for Val
Source§fn from(b: &DurationSmall) -> Val
fn from(b: &DurationSmall) -> Val
Converts to this type from the input type.
Source§impl From<DurationSmall> for DurationVal
impl From<DurationSmall> for DurationVal
Source§fn from(s: DurationSmall) -> DurationVal
fn from(s: DurationSmall) -> DurationVal
Converts to this type from the input type.
Source§impl From<DurationSmall> for Val
impl From<DurationSmall> for Val
Source§fn from(b: DurationSmall) -> Val
fn from(b: DurationSmall) -> Val
Converts to this type from the input type.
Source§impl Hash for DurationSmall
impl Hash for DurationSmall
Source§impl Ord for DurationSmall
impl Ord for DurationSmall
Source§fn cmp(&self, other: &DurationSmall) -> Ordering
fn cmp(&self, other: &DurationSmall) -> 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 DurationSmall
impl PartialEq for DurationSmall
Source§impl PartialOrd for DurationSmall
impl PartialOrd for DurationSmall
Source§impl TryFrom<&DurationSmall> for ScVal
impl TryFrom<&DurationSmall> for ScVal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &DurationSmall) -> Result<ScVal, ConversionError>
fn try_from(value: &DurationSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
Source§impl TryFrom<&Val> for DurationSmall
impl TryFrom<&Val> for DurationSmall
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
v: &Val,
) -> Result<DurationSmall, <DurationSmall as TryFrom<&Val>>::Error>
fn try_from( v: &Val, ) -> Result<DurationSmall, <DurationSmall as TryFrom<&Val>>::Error>
Performs the conversion.
Source§impl TryFrom<DurationSmall> for ScVal
impl TryFrom<DurationSmall> for ScVal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DurationSmall) -> Result<ScVal, ConversionError>
fn try_from(value: DurationSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
Source§impl TryFrom<DurationVal> for DurationSmall
impl TryFrom<DurationVal> for DurationSmall
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
s: DurationVal,
) -> Result<DurationSmall, <DurationSmall as TryFrom<DurationVal>>::Error>
fn try_from( s: DurationVal, ) -> Result<DurationSmall, <DurationSmall as TryFrom<DurationVal>>::Error>
Performs the conversion.
Source§impl TryFrom<Val> for DurationSmall
impl TryFrom<Val> for DurationSmall
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
v: Val,
) -> Result<DurationSmall, <DurationSmall as TryFrom<Val>>::Error>
fn try_from( v: Val, ) -> Result<DurationSmall, <DurationSmall as TryFrom<Val>>::Error>
Performs the conversion.
Source§impl TryFrom<u64> for DurationSmall
impl TryFrom<u64> for DurationSmall
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u64,
) -> Result<DurationSmall, <DurationSmall as TryFrom<u64>>::Error>
fn try_from( value: u64, ) -> Result<DurationSmall, <DurationSmall as TryFrom<u64>>::Error>
Performs the conversion.
Source§impl<E> TryFromVal<E, &DurationSmall> for Valwhere
E: Env,
impl<E> TryFromVal<E, &DurationSmall> for Valwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &&DurationSmall, ) -> Result<Val, <Val as TryFromVal<E, &DurationSmall>>::Error>
Source§impl<E> TryFromVal<E, DurationSmall> for Valwhere
E: Env,
impl<E> TryFromVal<E, DurationSmall> for Valwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &DurationSmall, ) -> Result<Val, <Val as TryFromVal<E, DurationSmall>>::Error>
Source§impl<E> TryFromVal<E, Val> for DurationSmallwhere
E: Env,
impl<E> TryFromVal<E, Val> for DurationSmallwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &Val, ) -> Result<DurationSmall, <DurationSmall as TryFromVal<E, Val>>::Error>
impl Copy for DurationSmall
impl Eq for DurationSmall
Auto Trait Implementations§
impl Freeze for DurationSmall
impl RefUnwindSafe for DurationSmall
impl Send for DurationSmall
impl Sync for DurationSmall
impl Unpin for DurationSmall
impl UnwindSafe for DurationSmall
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