pub struct StemBit {
pub value: bool,
pub layer: usize,
pub stem: usize,
pub bit: usize,
}
Expand description
A struct representing the value of a bit in a K2Tree’s stems.
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.
layer: usize
The stem-layer of the bit.
stem: usize
The stem-number of the bit.
bit: usize
The index of the bit within its stem.
Trait Implementations§
impl Copy for StemBit
impl StructuralPartialEq for StemBit
Auto Trait Implementations§
impl Freeze for StemBit
impl RefUnwindSafe for StemBit
impl Send for StemBit
impl Sync for StemBit
impl Unpin for StemBit
impl UnwindSafe for StemBit
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