pub struct AnyPtr(/* private fields */);Implementations§
Trait Implementations§
Source§impl FromToNativeWasmType for AnyPtr
impl FromToNativeWasmType for AnyPtr
Source§impl Write<Vec<u8>> for AnyPtr
impl Write<Vec<u8>> for AnyPtr
Source§fn alloc(value: &Vec<u8>, env: &Env) -> Result<Box<AnyPtr>>
fn alloc(value: &Vec<u8>, env: &Env) -> Result<Box<AnyPtr>>
Try to write in the given environment a new value thanks to the
AssemblyScript runtime. Read more
impl Copy for AnyPtr
Auto Trait Implementations§
impl Freeze for AnyPtr
impl RefUnwindSafe for AnyPtr
impl Send for AnyPtr
impl Sync for AnyPtr
impl Unpin for AnyPtr
impl UnwindSafe for AnyPtr
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
Source§impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
Source§type CStruct = S1<A1>
type CStruct = S1<A1>
The C type (a struct) that can hold/represent all the
represented values.
Source§fn from_array(array: <A1 as WasmTypeList>::Array) -> A1
fn from_array(array: <A1 as WasmTypeList>::Array) -> A1
Constructs
Self based on an array of values.Source§fn from_slice(slice: &[i128]) -> Result<A1, TryFromSliceError>
fn from_slice(slice: &[i128]) -> Result<A1, TryFromSliceError>
Constructs
Self based on a slice of values. Read moreSource§fn into_array(self) -> <A1 as WasmTypeList>::Array
fn into_array(self) -> <A1 as WasmTypeList>::Array
Builds and returns an array of type
Array from a tuple
(list) of values.Source§fn empty_array() -> <A1 as WasmTypeList>::Array
fn empty_array() -> <A1 as WasmTypeList>::Array
Allocates and return an empty array of type
Array that
will hold a tuple (list) of values, usually to hold the
returned values of a WebAssembly function call.Source§fn from_c_struct(c_struct: <A1 as WasmTypeList>::CStruct) -> A1
fn from_c_struct(c_struct: <A1 as WasmTypeList>::CStruct) -> A1
Builds a tuple (list) of values from a C struct of type
CStruct.Source§fn into_c_struct(self) -> <A1 as WasmTypeList>::CStruct
fn into_c_struct(self) -> <A1 as WasmTypeList>::CStruct
Builds and returns a C struct of type
CStruct from a
tuple (list) of values.Source§fn wasm_types() -> &'static [Type]
fn wasm_types() -> &'static [Type]
Get the Wasm types for the tuple (list) of currently
represented values.