pub struct PatternLockSet { /* private fields */ }Expand description
Set of source note indices held fixed (locked) during mutation.
Implementations§
Source§impl PatternLockSet
impl PatternLockSet
Sourcepub fn from_note_indices(indices: impl IntoIterator<Item = usize>) -> Self
pub fn from_note_indices(indices: impl IntoIterator<Item = usize>) -> Self
Builds a lock set from a collection of source note indices.
Sourcepub fn note_indices(&self) -> &BTreeSet<usize>
pub fn note_indices(&self) -> &BTreeSet<usize>
Returns the set of locked source note indices.
Trait Implementations§
Source§impl Clone for PatternLockSet
impl Clone for PatternLockSet
Source§fn clone(&self) -> PatternLockSet
fn clone(&self) -> PatternLockSet
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 PatternLockSet
impl Debug for PatternLockSet
Source§impl Default for PatternLockSet
impl Default for PatternLockSet
Source§fn default() -> PatternLockSet
fn default() -> PatternLockSet
Returns the “default value” for a type. Read more
impl Eq for PatternLockSet
Source§impl PartialEq for PatternLockSet
impl PartialEq for PatternLockSet
impl StructuralPartialEq for PatternLockSet
Auto Trait Implementations§
impl Freeze for PatternLockSet
impl RefUnwindSafe for PatternLockSet
impl Send for PatternLockSet
impl Sync for PatternLockSet
impl Unpin for PatternLockSet
impl UnsafeUnpin for PatternLockSet
impl UnwindSafe for PatternLockSet
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