Struct fbas_analyzer::NodeIdSetResult
source · pub struct NodeIdSetResult { /* private fields */ }
Expand description
Wraps a node ID set.
Implementations§
source§impl NodeIdSetResult
impl NodeIdSetResult
pub fn unwrap(self) -> NodeIdSet
pub fn into_vec(self) -> Vec<NodeId>
pub fn involved_nodes(&self) -> NodeIdSet
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn without_nodes(&self, nodes: &[NodeId]) -> Self
pub fn without_nodes_pretty( &self, nodes: &[String], fbas: &Fbas, groupings: Option<&Groupings<'_>> ) -> Self
sourcepub fn merged_by_group(&self, groupings: &Groupings<'_>) -> Self
pub fn merged_by_group(&self, groupings: &Groupings<'_>) -> Self
Merge contained nodes so that all nodes of the same grouping get the same ID.
source§impl NodeIdSetResult
impl NodeIdSetResult
sourcepub fn into_pretty_vec(
self,
fbas: &Fbas,
groupings: Option<&Groupings<'_>>
) -> Vec<String>
pub fn into_pretty_vec( self, fbas: &Fbas, groupings: Option<&Groupings<'_>> ) -> Vec<String>
Transforms result into a vector of public keys and/or grouping names. The passed FBAS should be the same as the one used for analysis, otherwise the IDs might not match. Preserves the original node ID-based ordering.
Trait Implementations§
source§impl AnalysisResult for NodeIdSetResult
impl AnalysisResult for NodeIdSetResult
fn into_id_string(self) -> String
fn into_pretty_string( self, fbas: &Fbas, groupings: Option<&Groupings<'_>> ) -> String
fn into_describe_string(self) -> String
source§impl Clone for NodeIdSetResult
impl Clone for NodeIdSetResult
source§fn clone(&self) -> NodeIdSetResult
fn clone(&self) -> NodeIdSetResult
Returns a copy 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 Debug for NodeIdSetResult
impl Debug for NodeIdSetResult
source§impl Default for NodeIdSetResult
impl Default for NodeIdSetResult
source§fn default() -> NodeIdSetResult
fn default() -> NodeIdSetResult
Returns the “default value” for a type. Read more
source§impl From<BitSet> for NodeIdSetResult
impl From<BitSet> for NodeIdSetResult
source§impl Hash for NodeIdSetResult
impl Hash for NodeIdSetResult
source§impl PartialEq for NodeIdSetResult
impl PartialEq for NodeIdSetResult
source§fn eq(&self, other: &NodeIdSetResult) -> bool
fn eq(&self, other: &NodeIdSetResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NodeIdSetResult
impl Serialize for NodeIdSetResult
impl Eq for NodeIdSetResult
impl StructuralEq for NodeIdSetResult
impl StructuralPartialEq for NodeIdSetResult
Auto Trait Implementations§
impl RefUnwindSafe for NodeIdSetResult
impl Send for NodeIdSetResult
impl Sync for NodeIdSetResult
impl Unpin for NodeIdSetResult
impl UnwindSafe for NodeIdSetResult
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<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.