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 duplicate 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§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