Struct eyros::Tree4[][src]

pub struct Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
{ pub root: Arc<Node4<P0, P1, P2, P3, V>>, }
Expand description

Tree in N dimensions. You might need to manually specify the appropriate Tree{N} as T for DB<_,T,_,_>.

Fields

root: Arc<Node4<P0, P1, P2, P3, V>>

Implementations

impl<P0, P1, P2, P3, V> Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

pub fn new(root: Arc<Node4<P0, P1, P2, P3, V>>) -> Self[src]

Trait Implementations

impl<P0, P1, P2, P3, V> CountBytes for Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

fn count_bytes(&self) -> usize[src]

Return the number of bytes that the serialization would require.

fn count_from_bytes(_src: &[u8]) -> Result<usize, Error>[src]

Return how many bytes from buf would be required to deserialize Self.

fn count_from_bytes_more(
    buf: &[u8]
) -> Result<Option<usize>, Box<dyn Error + 'static + Sync + Send, Global>>
[src]

Return how many bytes from buf would be required to deserialize Self, where if there are not enough bytes in buf to know how many bytes would be required, you will receive None or otherwise Some(nbytes). Read more

impl<P0: Debug, P1: Debug, P2: Debug, P3: Debug, V: Debug> Debug for Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<P0, P1, P2, P3, V> FromBytes for Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

fn from_bytes(src: &[u8]) -> Result<(usize, Self), Error>[src]

Read data from src in order to create an instance Self. The usize in the Result is the number of bytes read from src. Read more

impl<P0: PartialEq, P1: PartialEq, P2: PartialEq, P3: PartialEq, V: PartialEq> PartialEq<Tree4<P0, P1, P2, P3, V>> for Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

fn eq(&self, other: &Tree4<P0, P1, P2, P3, V>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Tree4<P0, P1, P2, P3, V>) -> bool[src]

This method tests for !=.

impl<P0, P1, P2, P3, V> ToBytes for Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

fn to_bytes(&self) -> Result<Vec<u8>, Error>[src]

Serialize into a newly-allocated byte vector.

fn write_bytes(
    &self,
    dst: &mut [u8]
) -> Result<usize, Box<dyn Error + 'static + Sync + Send, Global>>
[src]

Serialize into an existing mutable byte slice. The usize Result contains how many bytes were written to dst. Read more

impl<P0, P1, P2, P3, V> StructuralPartialEq for Tree4<P0, P1, P2, P3, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    P3: Scalar,
    V: Value
[src]

Auto Trait Implementations

impl<P0, P1, P2, P3, V> RefUnwindSafe for Tree4<P0, P1, P2, P3, V> where
    P0: RefUnwindSafe,
    P1: RefUnwindSafe,
    P2: RefUnwindSafe,
    P3: RefUnwindSafe,
    V: RefUnwindSafe

impl<P0, P1, P2, P3, V> Send for Tree4<P0, P1, P2, P3, V>

impl<P0, P1, P2, P3, V> Sync for Tree4<P0, P1, P2, P3, V>

impl<P0, P1, P2, P3, V> Unpin for Tree4<P0, P1, P2, P3, V>

impl<P0, P1, P2, P3, V> UnwindSafe for Tree4<P0, P1, P2, P3, V> where
    P0: RefUnwindSafe,
    P1: RefUnwindSafe,
    P2: RefUnwindSafe,
    P3: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.