pub enum PatternOrResolvedMut<'a, 'b, Q: QueryContext> {
Pattern(&'a Pattern<Q>),
Resolved(&'b mut Q::ResolvedPattern<'a>),
_ResolvedBinding,
}Variants§
Trait Implementations§
source§impl<'a, 'b, Q: Debug + QueryContext> Debug for PatternOrResolvedMut<'a, 'b, Q>where
Q::ResolvedPattern<'a>: Debug,
impl<'a, 'b, Q: Debug + QueryContext> Debug for PatternOrResolvedMut<'a, 'b, Q>where
Q::ResolvedPattern<'a>: Debug,
Auto Trait Implementations§
impl<'a, 'b, Q> Freeze for PatternOrResolvedMut<'a, 'b, Q>
impl<'a, 'b, Q> RefUnwindSafe for PatternOrResolvedMut<'a, 'b, Q>where
<Q as QueryContext>::ResolvedPattern<'a>: RefUnwindSafe,
<Q as QueryContext>::LeafNodePattern: RefUnwindSafe,
<Q as QueryContext>::CodeSnippet: RefUnwindSafe,
<Q as QueryContext>::NodePattern: RefUnwindSafe,
impl<'a, 'b, Q> Send for PatternOrResolvedMut<'a, 'b, Q>where
<Q as QueryContext>::ResolvedPattern<'a>: Send,
<Q as QueryContext>::LeafNodePattern: Sync,
<Q as QueryContext>::CodeSnippet: Sync,
<Q as QueryContext>::NodePattern: Sync,
impl<'a, 'b, Q> Sync for PatternOrResolvedMut<'a, 'b, Q>where
<Q as QueryContext>::ResolvedPattern<'a>: Sync,
<Q as QueryContext>::LeafNodePattern: Sync,
<Q as QueryContext>::CodeSnippet: Sync,
<Q as QueryContext>::NodePattern: Sync,
impl<'a, 'b, Q> Unpin for PatternOrResolvedMut<'a, 'b, Q>
impl<'a, 'b, Q> !UnwindSafe for PatternOrResolvedMut<'a, 'b, Q>
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more