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>
Source§impl WasmiMarshal for Object
impl WasmiMarshal for Object
fn try_marshal_from_value(v: Value) -> Option<Object>
fn marshal_from_self(self) -> Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<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.