pub struct HighlightSelection {
pub node_indices: BTreeSet<usize>,
pub edge_indices: BTreeSet<usize>,
}Expand description
Exact graph elements to keep vivid in a highlighted SNFG rendering.
Indices are the stable petgraph node/edge indices exposed by the source
ResidueGraph; elements not listed here are rendered with the muted SNFG
palette.
Fields§
§node_indices: BTreeSet<usize>§edge_indices: BTreeSet<usize>Trait Implementations§
Source§impl Clone for HighlightSelection
impl Clone for HighlightSelection
Source§fn clone(&self) -> HighlightSelection
fn clone(&self) -> HighlightSelection
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 Debug for HighlightSelection
impl Debug for HighlightSelection
Source§impl Default for HighlightSelection
impl Default for HighlightSelection
Source§fn default() -> HighlightSelection
fn default() -> HighlightSelection
Returns the “default value” for a type. Read more
impl Eq for HighlightSelection
Source§impl PartialEq for HighlightSelection
impl PartialEq for HighlightSelection
impl StructuralPartialEq for HighlightSelection
Auto Trait Implementations§
impl Freeze for HighlightSelection
impl RefUnwindSafe for HighlightSelection
impl Send for HighlightSelection
impl Sync for HighlightSelection
impl Unpin for HighlightSelection
impl UnsafeUnpin for HighlightSelection
impl UnwindSafe for HighlightSelection
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
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