[][src]Struct k2_tree::tree::LeafBit

pub struct LeafBit {
    pub value: bool,
    pub x: usize,
    pub y: usize,
    pub leaf: usize,
    pub bit: usize,
}

A struct representing the value of a bit in a K2Tree's leaves.

This type is not intended to live for very long and is not linked to the live-state of the source K2Tree, so if the state of K2Tree changes then this could be invalid.

Fields

value: bool

The value of the bit.

x: usize

The x coordinate of the bit in the matrix the K2Tree represents.

y: usize

The y coordinate of the bit in the matrix the K2Tree represents.

leaf: usize

The leaf number of the bit.

bit: usize

The index of the bit within its leaf.

Trait Implementations

impl Clone for LeafBit[src]

impl Copy for LeafBit[src]

impl Debug for LeafBit[src]

impl PartialEq<LeafBit> for LeafBit[src]

impl StructuralPartialEq for LeafBit[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.