Struct soroban_env_guest::Object
source · pub struct Object(/* private fields */);
Expand description
Implementations§
Trait Implementations§
source§impl From<AddressObject> for Object
impl From<AddressObject> for Object
source§fn from(x: AddressObject) -> Object
fn from(x: AddressObject) -> Object
Converts to this type from the input type.
source§impl From<BytesObject> for Object
impl From<BytesObject> for Object
source§fn from(x: BytesObject) -> Object
fn from(x: BytesObject) -> Object
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<I128Object> for Object
impl From<I128Object> for Object
source§fn from(x: I128Object) -> Object
fn from(x: I128Object) -> Object
Converts to this type from the input type.
source§impl From<I256Object> for Object
impl From<I256Object> for Object
source§fn from(x: I256Object) -> Object
fn from(x: I256Object) -> Object
Converts to this type from the input type.
source§impl From<StringObject> for Object
impl From<StringObject> for Object
source§fn from(x: StringObject) -> Object
fn from(x: StringObject) -> Object
Converts to this type from the input type.
source§impl From<SymbolObject> for Object
impl From<SymbolObject> for Object
source§fn from(x: SymbolObject) -> Object
fn from(x: SymbolObject) -> Object
Converts to this type from the input type.
source§impl From<TimepointObject> for Object
impl From<TimepointObject> for Object
source§fn from(x: TimepointObject) -> Object
fn from(x: TimepointObject) -> Object
Converts to this type from the input type.
source§impl From<U128Object> for Object
impl From<U128Object> for Object
source§fn from(x: U128Object) -> Object
fn from(x: U128Object) -> Object
Converts to this type from the input type.
source§impl From<U256Object> for Object
impl From<U256Object> for Object
source§fn from(x: U256Object) -> Object
fn from(x: U256Object) -> Object
Converts to this type from the input type.
source§impl TryFrom<Object> for AddressObject
impl TryFrom<Object> for AddressObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<AddressObject, <AddressObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<AddressObject, <AddressObject as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for BytesObject
impl TryFrom<Object> for BytesObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<BytesObject, <BytesObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<BytesObject, <BytesObject as TryFrom<Object>>::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<Object> for I128Object
impl TryFrom<Object> for I128Object
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<I128Object, <I128Object as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<I128Object, <I128Object as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for I256Object
impl TryFrom<Object> for I256Object
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<I256Object, <I256Object as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<I256Object, <I256Object as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for StringObject
impl TryFrom<Object> for StringObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<StringObject, <StringObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<StringObject, <StringObject as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for SymbolObject
impl TryFrom<Object> for SymbolObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<SymbolObject, <SymbolObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<SymbolObject, <SymbolObject as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for TimepointObject
impl TryFrom<Object> for TimepointObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<TimepointObject, <TimepointObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<TimepointObject, <TimepointObject as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for U128Object
impl TryFrom<Object> for U128Object
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<U128Object, <U128Object as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<U128Object, <U128Object as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for U256Object
impl TryFrom<Object> for U256Object
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<U256Object, <U256Object as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<U256Object, <U256Object as TryFrom<Object>>::Error>
Performs the conversion.
source§impl<E> TryFromVal<E, Object> for ScValObject
impl<E> TryFromVal<E, Object> for ScValObject
type Error = <E as Convert<Object, ScValObject>>::Error
fn try_from_val( env: &E, val: &Object ) -> Result<ScValObject, <ScValObject as TryFromVal<E, Object>>::Error>
source§impl<E> TryFromVal<E, Object> for Valwhere
E: Env,
impl<E> TryFromVal<E, Object> for Valwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &Object ) -> Result<Val, <Val as TryFromVal<E, Object>>::Error>
source§impl<'a, E> TryFromVal<E, ScValObjRef<'a>> for Object
impl<'a, E> TryFromVal<E, ScValObjRef<'a>> for Object
type Error = ConversionError
fn try_from_val( env: &E, v: &ScValObjRef<'a> ) -> Result<Object, <Object as TryFromVal<E, ScValObjRef<'a>>>::Error>
source§impl<E> TryFromVal<E, Val> for Objectwhere
E: Env,
impl<E> TryFromVal<E, Val> for Objectwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &Val ) -> Result<Object, <Object as TryFromVal<E, Val>>::Error>
impl Copy for Object
Auto Trait Implementations§
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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