Struct TagSet
pub struct TagSet { /* private fields */ }Implementations§
§impl TagSet
impl TagSet
pub fn insert(&mut self, tag: &str) -> Result<bool, TagError>
pub fn remove(&mut self, tag: &str) -> bool
pub fn contains(&self, tag: &str) -> bool
pub fn matches(&self, query: &str) -> bool
pub fn matches_all(&self, queries: &[&str]) -> bool
pub fn matches_any(&self, queries: &[&str]) -> bool
pub fn iter(&self) -> impl Iterator<Item = &str>
Trait Implementations§
impl Eq for TagSet
impl StructuralPartialEq for TagSet
Auto Trait Implementations§
impl Freeze for TagSet
impl RefUnwindSafe for TagSet
impl Send for TagSet
impl Sync for TagSet
impl Unpin for TagSet
impl UnwindSafe for TagSet
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