Struct soroban_env_guest::DurationObject
source · pub struct DurationObject(/* private fields */);
Implementations§
source§impl DurationObject
impl DurationObject
pub const unsafe fn from_handle(handle: u32) -> DurationObject
pub const fn get_handle(&self) -> u32
Trait Implementations§
source§impl AsMut<Val> for DurationObject
impl AsMut<Val> for DurationObject
source§impl AsRef<Val> for DurationObject
impl AsRef<Val> for DurationObject
source§impl CheckedEnvArg for DurationObject
impl CheckedEnvArg for DurationObject
fn check_env_arg<E>(
self,
e: &E
) -> Result<DurationObject, <E as EnvBase>::Error>where
E: Env,
source§impl Clone for DurationObject
impl Clone for DurationObject
source§fn clone(&self) -> DurationObject
fn clone(&self) -> DurationObject
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<DurationObject> for Ewhere
E: Env,
impl<E> Compare<DurationObject> for Ewhere
E: Env,
type Error = <E as EnvBase>::Error
fn compare( &self, a: &DurationObject, b: &DurationObject ) -> Result<Ordering, <E as Compare<DurationObject>>::Error>
source§impl Debug for DurationObject
impl Debug for DurationObject
source§impl From<&DurationObject> for Val
impl From<&DurationObject> for Val
source§fn from(b: &DurationObject) -> Val
fn from(b: &DurationObject) -> Val
Converts to this type from the input type.
source§impl From<DurationObject> for DurationVal
impl From<DurationObject> for DurationVal
source§fn from(ob: DurationObject) -> DurationVal
fn from(ob: DurationObject) -> DurationVal
Converts to this type from the input type.
source§impl From<DurationObject> for Object
impl From<DurationObject> for Object
source§fn from(x: DurationObject) -> Object
fn from(x: DurationObject) -> Object
Converts to this type from the input type.
source§impl From<DurationObject> for Val
impl From<DurationObject> for Val
source§fn from(b: DurationObject) -> Val
fn from(b: DurationObject) -> Val
Converts to this type from the input type.
source§impl Hash for DurationObject
impl Hash for DurationObject
source§impl TryFrom<&Val> for DurationObject
impl TryFrom<&Val> for DurationObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
v: &Val
) -> Result<DurationObject, <DurationObject as TryFrom<&Val>>::Error>
fn try_from( v: &Val ) -> Result<DurationObject, <DurationObject as TryFrom<&Val>>::Error>
Performs the conversion.
source§impl TryFrom<DurationVal> for DurationObject
impl TryFrom<DurationVal> for DurationObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
s: DurationVal
) -> Result<DurationObject, <DurationObject as TryFrom<DurationVal>>::Error>
fn try_from( s: DurationVal ) -> Result<DurationObject, <DurationObject as TryFrom<DurationVal>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for DurationObject
impl TryFrom<Object> for DurationObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<DurationObject, <DurationObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<DurationObject, <DurationObject as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Val> for DurationObject
impl TryFrom<Val> for DurationObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
v: Val
) -> Result<DurationObject, <DurationObject as TryFrom<Val>>::Error>
fn try_from( v: Val ) -> Result<DurationObject, <DurationObject as TryFrom<Val>>::Error>
Performs the conversion.
source§impl<E> TryFromVal<E, DurationObject> for Valwhere
E: Env,
impl<E> TryFromVal<E, DurationObject> for Valwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &DurationObject ) -> Result<Val, <Val as TryFromVal<E, DurationObject>>::Error>
source§impl<E> TryFromVal<E, Val> for DurationObjectwhere
E: Env,
impl<E> TryFromVal<E, Val> for DurationObjectwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &Val ) -> Result<DurationObject, <DurationObject as TryFromVal<E, Val>>::Error>
impl Copy for DurationObject
Auto Trait Implementations§
impl RefUnwindSafe for DurationObject
impl Send for DurationObject
impl Sync for DurationObject
impl Unpin for DurationObject
impl UnwindSafe for DurationObject
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