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 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>
Source§impl WasmiMarshal for DurationSmall
impl WasmiMarshal for DurationSmall
fn try_marshal_from_value(v: Value) -> Option<DurationSmall>
fn marshal_from_self(self) -> Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
Source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
Source§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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.