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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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 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<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 = Error
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 Freeze for Object
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