pub struct NodeSet { /* private fields */ }Expand description
A set of nodes, optionally labeled and named.
Implementations§
Source§impl NodeSet
impl NodeSet
pub fn new(nodes: Vec<usize>) -> Self
pub fn with_label(self, label: usize) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn label(&self) -> Option<usize>
pub fn name(&self) -> Option<&str>
pub fn nodes(&self) -> &[usize]
pub fn restrict(&self, map: impl Fn(usize) -> Option<usize>) -> Option<Self>
Trait Implementations§
impl StructuralPartialEq for NodeSet
Auto Trait Implementations§
impl Freeze for NodeSet
impl RefUnwindSafe for NodeSet
impl Send for NodeSet
impl Sync for NodeSet
impl Unpin for NodeSet
impl UnsafeUnpin for NodeSet
impl UnwindSafe for NodeSet
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