pub struct PackedInts { /* private fields */ }Expand description
Stores values of a specific (in bits) size.
Implementations§
Source§impl PackedInts
impl PackedInts
pub fn new(number_of_values: usize, bits_per_value: u8) -> PackedInts
Trait Implementations§
Source§impl EdgeValues for PackedInts
impl EdgeValues for PackedInts
Source§fn add_or_remove_value(
&mut self,
a: usize,
b: usize,
c: usize,
value: <PackedInts as EdgeValues>::Value,
)
fn add_or_remove_value( &mut self, a: usize, b: usize, c: usize, value: <PackedInts as EdgeValues>::Value, )
Add or remove given
value to/from the list of values assigned to all the given vertices.Source§fn get_value(&self, vertex: usize) -> <PackedInts as EdgeValues>::Value
fn get_value(&self, vertex: usize) -> <PackedInts as EdgeValues>::Value
Returns value assigned to the given
vertex.
It can only be called when exactly one value is assigned to the edge.Auto Trait Implementations§
impl Freeze for PackedInts
impl RefUnwindSafe for PackedInts
impl Send for PackedInts
impl Sync for PackedInts
impl Unpin for PackedInts
impl UnsafeUnpin for PackedInts
impl UnwindSafe for PackedInts
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> 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