pub struct UserData<'a> { /* private fields */ }Implementations§
source§impl<'a> UserData<'a>
impl<'a> UserData<'a>
pub fn new() -> Self
pub fn init( allow: &'a str, block: &'a str, redirect: &'a str, soucres: &'a str, ) -> Self
pub fn allow_cap(&self) -> usize
pub fn allow_len(&self) -> usize
pub fn block_cap(&self) -> usize
pub fn block_len(&self) -> usize
pub fn redirect_cap(&self) -> usize
pub fn redirect_len(&self) -> usize
pub fn sources_cap(&self) -> usize
pub fn sources_len(&self) -> usize
pub fn get_allow(&self) -> &HashSet<H<'_>>
pub fn insert_allow(&mut self, value: &'a str)
pub fn insert_allow_h(&mut self, value: H<'a>)
pub fn remove_allow(&mut self, value: &'a str)
pub fn get_block(&self) -> &HashSet<H<'_>>
pub fn insert_block(&mut self, value: &'a str)
pub fn remove_block(&mut self, value: &'a str)
pub fn get_redirect(&self) -> &HashSet<R<'_>>
pub fn find_redirect(&self, value: &str) -> Option<&R<'_>>
pub fn insert_redirect(&mut self, to: &'a str, from: &'a str)
pub fn push_redirect(&mut self, value: R<'a>)
pub fn remove_redirect(&mut self, value: &str)
pub fn get_sources(&self) -> &HashSet<H<'_>>
pub fn insert_sources(&mut self, value: &'a str)
pub fn remove_sources(&mut self, value: &'a str)
pub fn save(&self, paths: &StoragePath) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UserData<'a>
impl<'a> RefUnwindSafe for UserData<'a>
impl<'a> Send for UserData<'a>
impl<'a> Sync for UserData<'a>
impl<'a> Unpin for UserData<'a>
impl<'a> UnwindSafe for UserData<'a>
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