Struct dharitri_wasm::storage::mappers::LinkedListNode
source · pub struct LinkedListNode<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> { /* private fields */ }Implementations§
source§impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> LinkedListNode<T>
impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> LinkedListNode<T>
pub fn get_value_cloned(&self) -> T
pub fn get_value_as_ref(&self) -> &T
pub fn into_value(self) -> T
pub fn get_node_id(&self) -> u32
pub fn get_next_node_id(&self) -> u32
pub fn get_prev_node_id(&self) -> u32
Trait Implementations§
source§impl<T: Clone + NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> Clone for LinkedListNode<T>
impl<T: Clone + NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> Clone for LinkedListNode<T>
source§fn clone(&self) -> LinkedListNode<T>
fn clone(&self) -> LinkedListNode<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> NestedDecode for LinkedListNode<T>
impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> NestedDecode for LinkedListNode<T>
source§fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
Attempt to deserialise the value from input,
using the format of an object nested inside another structure.
In case of success returns the deserialized value and the number of bytes consumed during the operation.
source§fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>(
input: &mut I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Self
fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>( input: &mut I, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> NestedEncode for LinkedListNode<T>
impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> NestedEncode for LinkedListNode<T>
source§fn dep_encode<O: NestedEncodeOutput>(
&self,
dest: &mut O
) -> Result<(), EncodeError>
fn dep_encode<O: NestedEncodeOutput>( &self, dest: &mut O ) -> Result<(), EncodeError>
NestedEncode to output, using the format of an object nested inside another structure.
Does not provide compact version.
source§fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>(
&self,
dest: &mut O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)
fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>( &self, dest: &mut O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl<T: PartialEq + NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> PartialEq for LinkedListNode<T>
impl<T: PartialEq + NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> PartialEq for LinkedListNode<T>
source§fn eq(&self, other: &LinkedListNode<T>) -> bool
fn eq(&self, other: &LinkedListNode<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> TopDecode for LinkedListNode<T>
impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> TopDecode for LinkedListNode<T>
source§fn top_decode<I: TopDecodeInput>(top_input: I) -> Result<Self, DecodeError>
fn top_decode<I: TopDecodeInput>(top_input: I) -> Result<Self, DecodeError>
Attempt to deserialize the value from input.
source§fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>(
top_input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Self
fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>( top_input: I, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> TopEncode for LinkedListNode<T>
impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> TopEncode for LinkedListNode<T>
source§fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
Attempt to serialize the value to ouput.
source§fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>(
&self,
output: O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)
fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>( &self, output: O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller bytecode implementations
in cases where the application is supposed to exit directly on decode error.impl<T: Copy + NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> Copy for LinkedListNode<T>
impl<T: NestedEncode + NestedDecode + TopEncode + TopDecode + Clone> StructuralPartialEq for LinkedListNode<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for LinkedListNode<T>where
T: RefUnwindSafe,
impl<T> Send for LinkedListNode<T>where
T: Send,
impl<T> Sync for LinkedListNode<T>where
T: Sync,
impl<T> Unpin for LinkedListNode<T>where
T: Unpin,
impl<T> UnwindSafe for LinkedListNode<T>where
T: UnwindSafe,
Blanket Implementations§
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