pub struct Match<T> {
pub captures: HashMap<String, Vec<Item<T>>>,
/* private fields */
}
Expand description
Similar to regex match. A match can have multiple captures.
Fields§
§captures: HashMap<String, Vec<Item<T>>>
Placeholder -> matched items.
Trait Implementations§
impl<T: Eq> Eq for Match<T>
impl<T> StructuralPartialEq for Match<T>
Auto Trait Implementations§
impl<T> Freeze for Match<T>
impl<T> !RefUnwindSafe for Match<T>
impl<T> !Send for Match<T>
impl<T> !Sync for Match<T>
impl<T> Unpin for Match<T>where
T: Unpin,
impl<T> !UnwindSafe for Match<T>
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