Enum ast_grep_core::meta_var::MatchResult
source · pub enum MatchResult<'a, 'tree, D: Doc> {
Single(&'a Node<'tree, D>),
Multi(&'a Vec<Node<'tree, D>>),
}
Variants§
Single(&'a Node<'tree, D>)
$A for captured meta var
Multi(&'a Vec<Node<'tree, D>>)
$$$A for captured ellipsis
Auto Trait Implementations§
impl<'a, 'tree, D> RefUnwindSafe for MatchResult<'a, 'tree, D>where D: RefUnwindSafe,
impl<'a, 'tree, D> !Send for MatchResult<'a, 'tree, D>
impl<'a, 'tree, D> !Sync for MatchResult<'a, 'tree, D>
impl<'a, 'tree, D> Unpin for MatchResult<'a, 'tree, D>
impl<'a, 'tree, D> UnwindSafe for MatchResult<'a, 'tree, D>where D: 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