pub struct ArrayRule<'a> {
pub field: &'a str,
pub match_kind: MatchKind,
}Expand description
A format’s built-in rule for resolving a non-numeric segment against an
array: compare the segment to field on each element.
Fields§
§field: &'a strElement field the segment is compared against. An element lacking it, or holding a non-string there, simply does not match.
match_kind: MatchKindImplementations§
Trait Implementations§
impl<'a> Copy for ArrayRule<'a>
impl<'a> Eq for ArrayRule<'a>
impl<'a> StructuralPartialEq for ArrayRule<'a>
Auto Trait Implementations§
impl<'a> Freeze for ArrayRule<'a>
impl<'a> RefUnwindSafe for ArrayRule<'a>
impl<'a> Send for ArrayRule<'a>
impl<'a> Sync for ArrayRule<'a>
impl<'a> Unpin for ArrayRule<'a>
impl<'a> UnsafeUnpin for ArrayRule<'a>
impl<'a> UnwindSafe for ArrayRule<'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
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.