pub struct LeafBit {
pub value: bool,
pub x: usize,
pub y: usize,
pub leaf: usize,
pub bit: usize,
}
Expand description
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 Copy for LeafBit
impl StructuralPartialEq for LeafBit
Auto Trait Implementations
impl RefUnwindSafe for LeafBit
impl Send for LeafBit
impl Sync for LeafBit
impl Unpin for LeafBit
impl UnwindSafe for LeafBit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more