Struct soroban_env_guest::num::TimepointSmall
source · pub struct TimepointSmall(/* private fields */);
Implementations§
Trait Implementations§
source§impl AsMut<Val> for TimepointSmall
impl AsMut<Val> for TimepointSmall
source§impl AsRef<Val> for TimepointSmall
impl AsRef<Val> for TimepointSmall
source§impl Clone for TimepointSmall
impl Clone for TimepointSmall
source§fn clone(&self) -> TimepointSmall
fn clone(&self) -> TimepointSmall
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<TimepointSmall> for Ewhere
E: Env,
impl<E> Compare<TimepointSmall> for Ewhere
E: Env,
type Error = <E as EnvBase>::Error
fn compare( &self, a: &TimepointSmall, b: &TimepointSmall ) -> Result<Ordering, <E as Compare<TimepointSmall>>::Error>
source§impl Debug for TimepointSmall
impl Debug for TimepointSmall
source§impl From<&TimepointSmall> for Val
impl From<&TimepointSmall> for Val
source§fn from(b: &TimepointSmall) -> Val
fn from(b: &TimepointSmall) -> Val
Converts to this type from the input type.
source§impl From<TimepointSmall> for TimepointVal
impl From<TimepointSmall> for TimepointVal
source§fn from(s: TimepointSmall) -> TimepointVal
fn from(s: TimepointSmall) -> TimepointVal
Converts to this type from the input type.
source§impl From<TimepointSmall> for Val
impl From<TimepointSmall> for Val
source§fn from(b: TimepointSmall) -> Val
fn from(b: TimepointSmall) -> Val
Converts to this type from the input type.
source§impl Hash for TimepointSmall
impl Hash for TimepointSmall
source§impl Ord for TimepointSmall
impl Ord for TimepointSmall
source§fn cmp(&self, other: &TimepointSmall) -> Ordering
fn cmp(&self, other: &TimepointSmall) -> 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 TimepointSmall
impl PartialEq for TimepointSmall
source§fn eq(&self, other: &TimepointSmall) -> bool
fn eq(&self, other: &TimepointSmall) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimepointSmall
impl PartialOrd for TimepointSmall
source§fn partial_cmp(&self, other: &TimepointSmall) -> Option<Ordering>
fn partial_cmp(&self, other: &TimepointSmall) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&TimepointSmall> for ScVal
impl TryFrom<&TimepointSmall> for ScVal
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(value: &TimepointSmall) -> Result<ScVal, ConversionError>
fn try_from(value: &TimepointSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
source§impl TryFrom<&Val> for TimepointSmall
impl TryFrom<&Val> for TimepointSmall
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
v: &Val
) -> Result<TimepointSmall, <TimepointSmall as TryFrom<&Val>>::Error>
fn try_from( v: &Val ) -> Result<TimepointSmall, <TimepointSmall as TryFrom<&Val>>::Error>
Performs the conversion.
source§impl TryFrom<TimepointSmall> for ScVal
impl TryFrom<TimepointSmall> for ScVal
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(value: TimepointSmall) -> Result<ScVal, ConversionError>
fn try_from(value: TimepointSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
source§impl TryFrom<TimepointVal> for TimepointSmall
impl TryFrom<TimepointVal> for TimepointSmall
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
s: TimepointVal
) -> Result<TimepointSmall, <TimepointSmall as TryFrom<TimepointVal>>::Error>
fn try_from( s: TimepointVal ) -> Result<TimepointSmall, <TimepointSmall as TryFrom<TimepointVal>>::Error>
Performs the conversion.
source§impl TryFrom<Val> for TimepointSmall
impl TryFrom<Val> for TimepointSmall
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
v: Val
) -> Result<TimepointSmall, <TimepointSmall as TryFrom<Val>>::Error>
fn try_from( v: Val ) -> Result<TimepointSmall, <TimepointSmall as TryFrom<Val>>::Error>
Performs the conversion.
source§impl TryFrom<u64> for TimepointSmall
impl TryFrom<u64> for TimepointSmall
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
value: u64
) -> Result<TimepointSmall, <TimepointSmall as TryFrom<u64>>::Error>
fn try_from( value: u64 ) -> Result<TimepointSmall, <TimepointSmall as TryFrom<u64>>::Error>
Performs the conversion.
source§impl<E> TryFromVal<E, TimepointSmall> for Valwhere
E: Env,
impl<E> TryFromVal<E, TimepointSmall> for Valwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &TimepointSmall ) -> Result<Val, <Val as TryFromVal<E, TimepointSmall>>::Error>
source§impl<E> TryFromVal<E, Val> for TimepointSmallwhere
E: Env,
impl<E> TryFromVal<E, Val> for TimepointSmallwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &Val ) -> Result<TimepointSmall, <TimepointSmall as TryFromVal<E, Val>>::Error>
impl Copy for TimepointSmall
impl Eq for TimepointSmall
Auto Trait Implementations§
impl RefUnwindSafe for TimepointSmall
impl Send for TimepointSmall
impl Sync for TimepointSmall
impl Unpin for TimepointSmall
impl UnwindSafe for TimepointSmall
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