pub struct HostnameMatcherNode<T> { /* private fields */ }Expand description
we don’t neet a radix tree here, because host name won’t be too long
Implementations§
source§impl<T> HostnameMatcherNode<T>
impl<T> HostnameMatcherNode<T>
pub fn new() -> Self
pub fn append_by_iter<'a, I>(&mut self, host: I, data: T)
pub fn set(&mut self, host: &str, data: T)
pub fn get_by_iter<'a, I>(&self, host: I) -> Option<&T>
pub fn get_mut_by_iter<'a, 'b, I>(&'b mut self, host: I) -> Option<&'b mut T>
pub fn get(&self, host: &str) -> Option<&T>
pub fn get_mut(&mut self, host: &str) -> Option<&mut T>
pub fn iter(&self) -> HostnameMatcherNodeIter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> HostnameMatcherNodeIterMut<'_, T> ⓘ
Trait Implementations§
source§impl<T: Clone> Clone for HostnameMatcherNode<T>
impl<T: Clone> Clone for HostnameMatcherNode<T>
source§fn clone(&self) -> HostnameMatcherNode<T>
fn clone(&self) -> HostnameMatcherNode<T>
Returns a copy 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 HostnameMatcherNode<T>
impl<T: Debug> Debug for HostnameMatcherNode<T>
Auto Trait Implementations§
impl<T> Freeze for HostnameMatcherNode<T>where
T: Freeze,
impl<T> RefUnwindSafe for HostnameMatcherNode<T>where
T: RefUnwindSafe,
impl<T> Send for HostnameMatcherNode<T>where
T: Send,
impl<T> Sync for HostnameMatcherNode<T>where
T: Sync,
impl<T> Unpin for HostnameMatcherNode<T>where
T: Unpin,
impl<T> UnwindSafe for HostnameMatcherNode<T>where
T: UnwindSafe + RefUnwindSafe,
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)