pub struct VertexState { /* private fields */ }Implementations§
Source§impl VertexState
impl VertexState
Sourcepub const MAX_SOURCE_ID: u32 = 0x1F_FFFF
pub const MAX_SOURCE_ID: u32 = 0x1F_FFFF
Largest source ID representable in the packed last-source field.
Colored builds track the previously seen source per vertex in 21 bits of
flags; partitioning rejects larger source sets before contraction so
this bound is never reached at run time.
pub fn update_edges(&mut self, front: Base, back: Base)
pub fn edge_at(&self, side: Side, cutoff: u32) -> Base
pub fn is_branching_side(&self, side: Side, cutoff: u32) -> bool
pub fn is_empty_side(&self, side: Side, cutoff: u32) -> bool
pub fn is_isolated(&self, cutoff: u32) -> bool
pub fn is_discontinuity(&self) -> bool
pub fn mark_visited(&mut self)
pub fn is_visited(&self) -> bool
pub fn mark_discontinuous(&mut self, side: Side)
pub fn is_discontinuous(&self, side: Side) -> bool
pub fn add_source(&mut self, source: u32)
pub fn add_source_hashed(&mut self, source: u32, source_hash: u64)
pub fn color_hash(&self) -> u64
Trait Implementations§
Source§impl Clone for VertexState
impl Clone for VertexState
Source§fn clone(&self) -> VertexState
fn clone(&self) -> VertexState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VertexState
Source§impl Debug for VertexState
impl Debug for VertexState
Source§impl Default for VertexState
impl Default for VertexState
Source§fn default() -> VertexState
fn default() -> VertexState
Returns the “default value” for a type. Read more
impl Eq for VertexState
Source§impl PartialEq for VertexState
impl PartialEq for VertexState
impl StructuralPartialEq for VertexState
Auto Trait Implementations§
impl Freeze for VertexState
impl RefUnwindSafe for VertexState
impl Send for VertexState
impl Sync for VertexState
impl Unpin for VertexState
impl UnsafeUnpin for VertexState
impl UnwindSafe for VertexState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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