Node

Struct Node 

Source
pub struct Node<I: NodeId, K, V> { /* private fields */ }

Trait Implementations§

Source§

impl<I: NodeId, K: Decode, V: Decode> Decode for Node<I, K, V>

Source§

fn decode(buf: BufConst<Self>) -> Self

Source§

impl<I: NodeId, K: Fixed, V: Fixed> Instance for Node<I, K, V>

Source§

type Buf<P: Ptr> = NodeBuf<P, I, K, V>

Source§

unsafe fn buf<P: Ptr>(ptr: P) -> Self::Buf<P>

Source§

fn buf_ptr<P: Ptr>(buf: Self::Buf<P>) -> P

Source§

impl<I: NodeId, K: Fixed, V: Fixed> Instance for Node<I, K, V>

Source§

const LEN: usize

Source§

fn encode(&self, buf: BufMut<Self>)

Source§

impl<P: Ptr, I: NodeId, K: Fixed, V: Fixed> Readable<Node<I, K, V>> for NodeBuf<P, I, K, V>

Source§

fn write_to(self, buf: BufMut<Node<I, K, V>>)

Auto Trait Implementations§

§

impl<I, K, V> Freeze for Node<I, K, V>
where K: Freeze, V: Freeze, I: Freeze,

§

impl<I, K, V> RefUnwindSafe for Node<I, K, V>

§

impl<I, K, V> Send for Node<I, K, V>
where K: Send, V: Send, I: Send,

§

impl<I, K, V> Sync for Node<I, K, V>
where K: Sync, V: Sync, I: Sync,

§

impl<I, K, V> Unpin for Node<I, K, V>
where K: Unpin, V: Unpin, I: Unpin,

§

impl<I, K, V> UnwindSafe for Node<I, K, V>
where K: UnwindSafe, V: UnwindSafe, I: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Decode for T
where T: Decode,

Source§

default fn decode(buf: <T as Instance>::Buf<Const>) -> (T, usize)

Source§

impl<T> Instance for T
where T: Instance,

Source§

default fn len(&self) -> usize

Source§

default fn buf_len(buf: <T as Instance>::Buf<Const>) -> usize

Source§

default fn encode(&self, buf: <T as Instance>::Buf<Mut>) -> usize

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.