#[repr(C, packed(1))]pub struct CompactEdge {
pub source: CompactVertexId,
pub target: CompactVertexId,
pub weight: u16,
pub flags: u16,
}Expand description
Compact edge representation (8 bytes)
Fields§
§source: CompactVertexId§target: CompactVertexId§weight: u16§flags: u16Implementations§
Source§impl CompactEdge
impl CompactEdge
pub const FLAG_ACTIVE: u16 = 1u16
pub const FLAG_IN_CUT: u16 = 2u16
pub const FLAG_TREE_EDGE: u16 = 4u16
pub fn is_active(&self) -> bool
pub fn is_in_cut(&self) -> bool
Trait Implementations§
Source§impl Clone for CompactEdge
impl Clone for CompactEdge
Source§fn clone(&self) -> CompactEdge
fn clone(&self) -> CompactEdge
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 CompactEdge
impl Default for CompactEdge
Source§fn default() -> CompactEdge
fn default() -> CompactEdge
Returns the “default value” for a type. Read more
impl Copy for CompactEdge
Auto Trait Implementations§
impl Freeze for CompactEdge
impl RefUnwindSafe for CompactEdge
impl Send for CompactEdge
impl Sync for CompactEdge
impl Unpin for CompactEdge
impl UnwindSafe for CompactEdge
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