pub struct EdgeCategoryTable { /* private fields */ }Expand description
Compact (src, dst) -> category lookup over the pre-cap edge set. Replaces the FragmentId-pair-keyed hashmap that used to retain the full uncapped edge universe for the lifetime of the pipeline.
Implementations§
Source§impl EdgeCategoryTable
impl EdgeCategoryTable
pub fn insert( &mut self, src: FragmentId, dst: FragmentId, category: EdgeCategory, )
Sourcepub fn ensure_sorted(&mut self)
pub fn ensure_sorted(&mut self)
Stable-sort + last-wins dedup, matching hashmap overwrite
semantics for repeated insert of the same key.
pub fn get(&self, src: &FragmentId, dst: &FragmentId) -> Option<EdgeCategory>
pub fn for_each<F: FnMut(&FragmentId, &FragmentId, EdgeCategory)>(&self, f: F)
Trait Implementations§
Source§impl Default for EdgeCategoryTable
impl Default for EdgeCategoryTable
Source§fn default() -> EdgeCategoryTable
fn default() -> EdgeCategoryTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EdgeCategoryTable
impl RefUnwindSafe for EdgeCategoryTable
impl Send for EdgeCategoryTable
impl Sync for EdgeCategoryTable
impl Unpin for EdgeCategoryTable
impl UnsafeUnpin for EdgeCategoryTable
impl UnwindSafe for EdgeCategoryTable
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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