[][src]Struct holochain_wasm_utils::memory::allocation::WasmAllocation

pub struct WasmAllocation { /* fields omitted */ }

Implementations

impl WasmAllocation[src]

pub fn max() -> MemoryBits[src]

pub fn new(offset: Offset, length: Length) -> AllocationResult[src]

pub fn offset(self) -> Offset[src]

pub fn length(self) -> Length[src]

impl WasmAllocation[src]

reads are always from a WasmAllocation

pub fn read_to_string(self) -> String[src]

Retrieve a stored string from an allocation. Return error code if encoded_allocation is invalid.

impl WasmAllocation[src]

pub fn try_from_ribosome_encoding(
    encoded_value: RibosomeEncodingBits
) -> AllocationResult
[src]

equivalent to TryFrom for WasmAllocation not implemented as a trait because RibosomeEncodingBits is a primitive and that would couple allocations to ribosome encoding

pub fn as_ribosome_encoding(self) -> RibosomeEncodingBits[src]

Trait Implementations

impl Clone for WasmAllocation[src]

impl Copy for WasmAllocation[src]

impl Debug for WasmAllocation[src]

impl From<WasmAllocation> for RibosomeEncodedAllocation[src]

impl From<WasmAllocation> for RibosomeEncodedValue[src]

impl PartialEq<WasmAllocation> for WasmAllocation[src]

impl StructuralPartialEq for WasmAllocation[src]

impl TryFrom<RibosomeEncodedAllocation> for WasmAllocation[src]

type Error = AllocationError

The type returned in the event of a conversion error.

impl TryFrom<WasmAllocation> for WasmStack[src]

type Error = AllocationError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,