Struct mun_runtime::ArrayRef

source ·
pub struct ArrayRef<'a, T> { /* private fields */ }
Expand description

Type-agnostic wrapper for interoperability with a Mun array. This is merely a reference to the Mun array, that will be garbage collected unless it is rooted.

Implementations§

Consumes the ArrayRef, returning a raw Mun array.

Roots the ArrayRef.

Returns the type information of the array.

Returns the number of elements stored in the array

Returns true if this array does not contain a single element.

Returns the length of the array

Returns an iterator to iterate over the elements of the array.

Trait Implementations§

Retrieves the argument’s type information.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The type used in the Mun ABI
Marshals from a value (i.e. Mun -> Rust).
Marshals itself into a Marshalled value (i.e. Rust -> Mun).
Marshals the value at memory location ptr into a Marshalled value (i.e. Mun -> Rust).
Marshals value to memory location ptr (i.e. Rust -> Mun).
Returns true if this specified type can be stored in an instance Self.
Returns a type hint to indicate the name of this type

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.