pub struct Blocks { /* private fields */ }Expand description
the blocked emotes: key → the name it was blocked under (“” when learned from the account and never seen here yet), in the order they were blocked.
Implementations§
Source§impl Blocks
impl Blocks
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn has(&self, key: &str) -> bool
Sourcepub fn add(&mut self, key: String, name: &str) -> bool
pub fn add(&mut self, key: String, name: &str) -> bool
true when newly added. a known key learns its name if it had none.
Sourcepub fn remove(&mut self, key: &str) -> Option<String>
pub fn remove(&mut self, key: &str) -> Option<String>
the name it was filed under, when it was blocked.
Sourcepub fn keys_named(&self, name: &str) -> Vec<String>
pub fn keys_named(&self, name: &str) -> Vec<String>
keys blocked under this name (exact, case-sensitive).
Trait Implementations§
impl StructuralPartialEq for Blocks
Auto Trait Implementations§
impl Forget for Blocks
impl Freeze for Blocks
impl RefUnwindSafe for Blocks
impl Send for Blocks
impl Sync for Blocks
impl Unpin for Blocks
impl UnsafeUnpin for Blocks
impl UnwindSafe for Blocks
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