pub struct NameSet(Vec<String>);Expand description
Names, sorted and deduplicated on construction.
Tuple Fields§
§0: Vec<String>Implementations§
Source§impl NameSet
impl NameSet
Sourcepub fn new<V: IntoIterator<Item = String>>(values: V) -> Self
pub fn new<V: IntoIterator<Item = String>>(values: V) -> Self
Sort and deduplicate values into their comparison and write order.
Sourcepub fn from_patterns(patterns: &str) -> Self
pub fn from_patterns(patterns: &str) -> Self
Split a semicolon separated pattern list, dropping empty parts.
Sourcepub fn to_patterns(&self) -> String
pub fn to_patterns(&self) -> String
Join the names into a semicolon separated pattern list.
Trait Implementations§
impl Eq for NameSet
Source§impl IntoIterator for NameSet
impl IntoIterator for NameSet
impl StructuralPartialEq for NameSet
Auto Trait Implementations§
impl Freeze for NameSet
impl RefUnwindSafe for NameSet
impl Send for NameSet
impl Sync for NameSet
impl Unpin for NameSet
impl UnsafeUnpin for NameSet
impl UnwindSafe for NameSet
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.