pub struct HostnameTree<T> { /* private fields */ }Implementations§
Source§impl<T> HostnameTree<T>
impl<T> HostnameTree<T>
pub fn new() -> Self
pub fn iter(&self) -> HostnameTreeIter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> HostnameTreeIterMut<'_, T> ⓘ
pub fn get(&self, host: &str) -> Option<&T>
pub fn get_mut(&mut self, host: &str) -> Option<&mut T>
pub fn set(&mut self, host: &str, data: T)
Trait Implementations§
Source§impl<T: Clone> Clone for HostnameTree<T>
impl<T: Clone> Clone for HostnameTree<T>
Source§fn clone(&self) -> HostnameTree<T>
fn clone(&self) -> HostnameTree<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for HostnameTree<T>
impl<T: Debug> Debug for HostnameTree<T>
Auto Trait Implementations§
impl<T> Freeze for HostnameTree<T>where
T: Freeze,
impl<T> RefUnwindSafe for HostnameTree<T>where
T: RefUnwindSafe,
impl<T> Send for HostnameTree<T>where
T: Send,
impl<T> Sync for HostnameTree<T>where
T: Sync,
impl<T> Unpin for HostnameTree<T>where
T: Unpin,
impl<T> UnwindSafe for HostnameTree<T>where
T: RefUnwindSafe + UnwindSafe,
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