pub struct SerialEdgeMatrix<const K: usize> { /* private fields */ }Implementations§
Source§impl<const K: usize> SerialEdgeMatrix<K>
impl<const K: usize> SerialEdgeMatrix<K>
pub fn new(vertex_partitions: usize) -> Result<Self, SerialEdgeMatrixError>
pub fn from_inputs( inputs: &DiscontinuityInputs<K>, vertex_partitions: usize, ) -> Result<Self, SerialEdgeMatrixError>
pub fn add_edge( &mut self, first: MatrixEndpoint<K>, second: MatrixEndpoint<K>, weight: u64, unitig_index: usize, )
pub fn add_edge_with_orientation( &mut self, first: MatrixEndpoint<K>, second: MatrixEndpoint<K>, weight: u64, unitig_index: usize, unitig_exit_side: Side, )
pub fn add_edge_with_orientation_and_phantom( &mut self, first: MatrixEndpoint<K>, second: MatrixEndpoint<K>, weight: u64, unitig_index: usize, unitig_exit_side: Side, phantom_unitig: Option<DiscontinuityEndpoint<K>>, )
pub const fn vertex_partitions(&self) -> usize
pub const fn partition_count(&self) -> usize
pub const fn stats(&self) -> SerialEdgeMatrixStats
pub fn partition(&self, endpoint: MatrixEndpoint<K>) -> usize
pub fn block(&self, row: usize, col: usize) -> &[DiscontinuityEdge<K>]
pub fn edges(&self) -> impl Iterator<Item = &DiscontinuityEdge<K>>
Trait Implementations§
Source§impl<const K: usize> Clone for SerialEdgeMatrix<K>
impl<const K: usize> Clone for SerialEdgeMatrix<K>
Source§fn clone(&self) -> SerialEdgeMatrix<K>
fn clone(&self) -> SerialEdgeMatrix<K>
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 moreSource§impl<const K: usize> Debug for SerialEdgeMatrix<K>
impl<const K: usize> Debug for SerialEdgeMatrix<K>
impl<const K: usize> Eq for SerialEdgeMatrix<K>
Source§impl<const K: usize> PartialEq for SerialEdgeMatrix<K>
impl<const K: usize> PartialEq for SerialEdgeMatrix<K>
impl<const K: usize> StructuralPartialEq for SerialEdgeMatrix<K>
Auto Trait Implementations§
impl<const K: usize> Freeze for SerialEdgeMatrix<K>
impl<const K: usize> RefUnwindSafe for SerialEdgeMatrix<K>
impl<const K: usize> Send for SerialEdgeMatrix<K>
impl<const K: usize> Sync for SerialEdgeMatrix<K>
impl<const K: usize> Unpin for SerialEdgeMatrix<K>
impl<const K: usize> UnsafeUnpin for SerialEdgeMatrix<K>
impl<const K: usize> UnwindSafe for SerialEdgeMatrix<K>
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