[−][src]Struct holochain_wasm_utils::memory::allocation::WasmAllocation
Methods
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]
encoded_value: RibosomeEncodingBits
) -> AllocationResult
equivalent to TryFrom
pub fn as_ribosome_encoding(self) -> RibosomeEncodingBits
[src]
Trait Implementations
impl From<WasmAllocation> for RibosomeEncodedAllocation
[src]
fn from(wasm_allocation: WasmAllocation) -> Self
[src]
impl From<WasmAllocation> for RibosomeEncodedValue
[src]
fn from(wasm_allocation: WasmAllocation) -> Self
[src]
impl Clone for WasmAllocation
[src]
fn clone(&self) -> WasmAllocation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WasmAllocation
[src]
impl PartialEq<WasmAllocation> for WasmAllocation
[src]
fn eq(&self, other: &WasmAllocation) -> bool
[src]
fn ne(&self, other: &WasmAllocation) -> bool
[src]
impl Debug for WasmAllocation
[src]
impl TryFrom<RibosomeEncodedAllocation> for WasmAllocation
[src]
type Error = AllocationError
The type returned in the event of a conversion error.
fn try_from(
ribosome_memory_allocation: RibosomeEncodedAllocation
) -> Result<Self, Self::Error>
[src]
ribosome_memory_allocation: RibosomeEncodedAllocation
) -> Result<Self, Self::Error>
impl TryFrom<WasmAllocation> for WasmStack
[src]
type Error = AllocationError
The type returned in the event of a conversion error.
fn try_from(allocation: WasmAllocation) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl Send for WasmAllocation
impl Sync for WasmAllocation
impl Unpin for WasmAllocation
impl UnwindSafe for WasmAllocation
impl RefUnwindSafe for WasmAllocation
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,