pub enum WildCard<K> {
Lit(K),
Wild(WildcardFn<K>),
}Expand description
A wildcard node in a key sequence that can conditionally match a single key element.
Variants§
Lit(K)
A literal key
Wild(WildcardFn<K>)
A predicate function for checking whether a key should be considered a match
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for WildCard<K>where
K: Freeze,
impl<K> RefUnwindSafe for WildCard<K>where
K: RefUnwindSafe,
impl<K> Send for WildCard<K>where
K: Send,
impl<K> Sync for WildCard<K>where
K: Sync,
impl<K> Unpin for WildCard<K>where
K: Unpin,
impl<K> UnwindSafe for WildCard<K>where
K: 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