Struct eyros::Tree3[][src]

pub struct Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    V: Value
{ pub root: Arc<Node3<P0, P1, P2, 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<Node3<P0, P1, P2, V>>

Implementations

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

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

Trait Implementations

impl<P0, P1, P2, V> CountBytes for Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: 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, V: Debug> Debug for Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: 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, V> FromBytes for Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: 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, V: PartialEq> PartialEq<Tree3<P0, P1, P2, V>> for Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    V: Value
[src]

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

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

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

This method tests for !=.

impl<P0, P1, P2, V> ToBytes for Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: 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, V> StructuralPartialEq for Tree3<P0, P1, P2, V> where
    P0: Scalar,
    P1: Scalar,
    P2: Scalar,
    V: Value
[src]

Auto Trait Implementations

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

impl<P0, P1, P2, V> Send for Tree3<P0, P1, P2, V>

impl<P0, P1, P2, V> Sync for Tree3<P0, P1, P2, V>

impl<P0, P1, P2, V> Unpin for Tree3<P0, P1, P2, V>

impl<P0, P1, P2, V> UnwindSafe for Tree3<P0, P1, P2, V> where
    P0: RefUnwindSafe,
    P1: RefUnwindSafe,
    P2: 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.