[−][src]Struct holochain_wasm_utils::memory::stack::WasmStack
Methods
impl WasmStack
[src]
pub fn try_from_ribosome_encoding(
maybe_encoded_allocation: RibosomeEncodingBits
) -> Result<WasmStack, RibosomeEncodedValue>
[src]
maybe_encoded_allocation: RibosomeEncodingBits
) -> Result<WasmStack, RibosomeEncodedValue>
equivalent to TryFrom
impl WasmStack
[src]
pub fn max() -> MemoryBits
[src]
pub fn min() -> MemoryInt
[src]
pub fn new() -> WasmStack
[src]
pub fn next_allocation(
self,
length: Length
) -> Result<WasmAllocation, AllocationError>
[src]
self,
length: Length
) -> Result<WasmAllocation, AllocationError>
pub fn allocate(
&mut self,
allocation: WasmAllocation
) -> Result<Top, AllocationError>
[src]
&mut self,
allocation: WasmAllocation
) -> Result<Top, AllocationError>
pub fn deallocate(
&mut self,
allocation: WasmAllocation
) -> Result<Top, AllocationError>
[src]
&mut self,
allocation: WasmAllocation
) -> Result<Top, AllocationError>
pub fn top(self) -> Top
[src]
impl WasmStack
[src]
pub fn write_string(&mut self, s: &str) -> AllocationResult
[src]
Write a string in wasm memory according to stack state.
pub fn write_json<J: TryInto<JsonString>>(
&mut self,
jsonable: J
) -> AllocationResult
[src]
&mut self,
jsonable: J
) -> AllocationResult
Write a data struct as a json string in wasm memory according to stack state.
Trait Implementations
impl Clone for WasmStack
[src]
impl Copy for WasmStack
[src]
impl Debug for WasmStack
[src]
impl Default for WasmStack
[src]
impl PartialEq<WasmStack> for WasmStack
[src]
impl StructuralPartialEq for WasmStack
[src]
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 RefUnwindSafe for WasmStack
impl Send for WasmStack
impl Sync for WasmStack
impl Unpin for WasmStack
impl UnwindSafe for WasmStack
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,