Struct gfatk::utils::GFAGraphLookups
source · [−]pub struct GFAGraphLookups(pub Vec<GFAGraphPair>);Expand description
A vector of GFAGraphPair’s.
This should 100% have been a map-like structure…
Tuple Fields
0: Vec<GFAGraphPair>Implementations
sourceimpl GFAGraphLookups
impl GFAGraphLookups
sourcepub fn push(&mut self, other: GFAGraphPair)
pub fn push(&mut self, other: GFAGraphPair)
Push a new GFAGraphPair to the end.
sourcepub fn node_index_to_seg_id(&self, node_index: NodeIndex) -> Result<usize>
pub fn node_index_to_seg_id(&self, node_index: NodeIndex) -> Result<usize>
Return segment ID from a node index.
sourcepub fn seg_id_to_node_index(&self, seg_id: usize) -> Result<NodeIndex>
pub fn seg_id_to_node_index(&self, seg_id: usize) -> Result<NodeIndex>
Return a node index from a segment ID.
Trait Implementations
sourceimpl Clone for GFAGraphLookups
impl Clone for GFAGraphLookups
sourcefn clone(&self) -> GFAGraphLookups
fn clone(&self) -> GFAGraphLookups
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GFAGraphLookups
impl Debug for GFAGraphLookups
Auto Trait Implementations
impl RefUnwindSafe for GFAGraphLookups
impl Send for GFAGraphLookups
impl Sync for GFAGraphLookups
impl Unpin for GFAGraphLookups
impl UnwindSafe for GFAGraphLookups
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more