#[repr(C)]pub struct CompactWitness {
pub membership: BitSet256,
pub seed: CompactVertexId,
pub boundary_size: u16,
pub cardinality: u16,
pub hash: u16,
}Expand description
Compact witness (40 bytes total)
Fields§
§membership: BitSet256§seed: CompactVertexId§boundary_size: u16§cardinality: u16§hash: u16Implementations§
Source§impl CompactWitness
impl CompactWitness
pub fn new(seed: CompactVertexId, membership: BitSet256, boundary: u16) -> Self
pub fn contains(&self, v: CompactVertexId) -> bool
Trait Implementations§
Source§impl Clone for CompactWitness
impl Clone for CompactWitness
Source§fn clone(&self) -> CompactWitness
fn clone(&self) -> CompactWitness
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CompactWitness
impl Default for CompactWitness
Source§fn default() -> CompactWitness
fn default() -> CompactWitness
Returns the “default value” for a type. Read more
impl Copy for CompactWitness
Auto Trait Implementations§
impl Freeze for CompactWitness
impl RefUnwindSafe for CompactWitness
impl Send for CompactWitness
impl Sync for CompactWitness
impl Unpin for CompactWitness
impl UnwindSafe for CompactWitness
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