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: boolThe value of the bit.
x: usizeThe x coordinate of the bit in the matrix the K2Tree represents.
y: usizeThe y coordinate of the bit in the matrix the K2Tree represents.
leaf: usizeThe leaf number of the bit.
bit: usizeThe index of the bit within its leaf.
Trait Implementations§
impl Copy for LeafBit
impl StructuralPartialEq for LeafBit
Auto Trait Implementations§
impl Freeze for LeafBit
impl RefUnwindSafe for LeafBit
impl Send for LeafBit
impl Sync for LeafBit
impl Unpin for LeafBit
impl UnwindSafe for LeafBit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more