pub struct KeyGlobPattern(/* private fields */);Expand description
A glob selecting full key paths for wholesale replacement.
Unquoted dots separate keys; single-quoted spans are literal, including
wildcard characters. Thus foo.* selects children of foo, whereas
'foo.bar' selects a single key containing a dot. Backslash escapes the
next byte literally inside quotes; outside quotes it follows fast-glob.
Arrays are never traversed and brackets are character classes, not indices.
Implementations§
Source§impl KeyGlobPattern
impl KeyGlobPattern
Sourcepub fn matches_keys(&self, keys: &[String]) -> bool
pub fn matches_keys(&self, keys: &[String]) -> bool
Match actual key segments, never a dotted diagnostic rendering. The empty slice denotes the document root and is never selected.
Trait Implementations§
Source§impl Clone for KeyGlobPattern
impl Clone for KeyGlobPattern
Source§impl Debug for KeyGlobPattern
impl Debug for KeyGlobPattern
impl Eq for KeyGlobPattern
Source§impl FromStr for KeyGlobPattern
impl FromStr for KeyGlobPattern
Source§impl PartialEq for KeyGlobPattern
impl PartialEq for KeyGlobPattern
impl StructuralPartialEq for KeyGlobPattern
Auto Trait Implementations§
impl Freeze for KeyGlobPattern
impl RefUnwindSafe for KeyGlobPattern
impl Send for KeyGlobPattern
impl Sync for KeyGlobPattern
impl Unpin for KeyGlobPattern
impl UnsafeUnpin for KeyGlobPattern
impl UnwindSafe for KeyGlobPattern
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.