pub struct VariableContent<'a, Q: QueryContext> {
pub name: String,
pub pattern: Option<&'a Pattern<Q>>,
pub value: Option<Q::ResolvedPattern<'a>>,
pub value_history: Vec<Q::ResolvedPattern<'a>>,
pub mirrors: Vec<&'a Variable>,
}Fields§
§name: String§pattern: Option<&'a Pattern<Q>>§value: Option<Q::ResolvedPattern<'a>>§value_history: Vec<Q::ResolvedPattern<'a>>§mirrors: Vec<&'a Variable>Implementations§
source§impl<'a, Q: QueryContext> VariableContent<'a, Q>
impl<'a, Q: QueryContext> VariableContent<'a, Q>
Trait Implementations§
source§impl<'a, Q: Clone + QueryContext> Clone for VariableContent<'a, Q>where
Q::ResolvedPattern<'a>: Clone,
impl<'a, Q: Clone + QueryContext> Clone for VariableContent<'a, Q>where
Q::ResolvedPattern<'a>: Clone,
source§fn clone(&self) -> VariableContent<'a, Q>
fn clone(&self) -> VariableContent<'a, Q>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, Q: Debug + QueryContext> Debug for VariableContent<'a, Q>where
Q::ResolvedPattern<'a>: Debug,
impl<'a, Q: Debug + QueryContext> Debug for VariableContent<'a, Q>where
Q::ResolvedPattern<'a>: Debug,
Auto Trait Implementations§
impl<'a, Q> Freeze for VariableContent<'a, Q>
impl<'a, Q> RefUnwindSafe for VariableContent<'a, 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, Q> Send for VariableContent<'a, 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, Q> Sync for VariableContent<'a, 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, Q> Unpin for VariableContent<'a, Q>
impl<'a, Q> UnwindSafe for VariableContent<'a, Q>where
<Q as QueryContext>::ResolvedPattern<'a>: UnwindSafe,
<Q as QueryContext>::LeafNodePattern: RefUnwindSafe,
<Q as QueryContext>::CodeSnippet: RefUnwindSafe,
<Q as QueryContext>::NodePattern: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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