pub struct Object(/* private fields */);
Expand description
Implementations§
Source§impl Object
impl Object
pub const fn get_handle(&self) -> u32
pub const fn from_handle_and_tag(handle: u32, tag: Tag) -> Self
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§impl TryFrom<Object> for BytesObject
impl TryFrom<Object> for BytesObject
Source§impl TryFrom<Object> for DurationObject
impl TryFrom<Object> for DurationObject
Source§impl TryFrom<Object> for I128Object
impl TryFrom<Object> for I128Object
Source§impl TryFrom<Object> for I256Object
impl TryFrom<Object> for I256Object
Source§impl TryFrom<Object> for StringObject
impl TryFrom<Object> for StringObject
Source§impl TryFrom<Object> for SymbolObject
impl TryFrom<Object> for SymbolObject
Source§impl TryFrom<Object> for TimepointObject
impl TryFrom<Object> for TimepointObject
Source§impl TryFrom<Object> for U128Object
impl TryFrom<Object> for U128Object
Source§impl TryFrom<Object> for U256Object
impl TryFrom<Object> for U256Object
Source§impl<E> TryFromVal<E, Object> for ScValObject
impl<E> TryFromVal<E, Object> for ScValObject
Source§impl<'a, E> TryFromVal<E, ScValObjRef<'a>> for Object
impl<'a, E> TryFromVal<E, ScValObjRef<'a>> for Object
Source§impl WasmiMarshal for Object
impl WasmiMarshal for Object
fn try_marshal_from_value(v: Value) -> Option<Self>
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.