Struct sway_core::error::ParserLifter
source · [−]pub struct ParserLifter<T> {
pub var_decls: Vec<VariableDeclaration>,
pub value: T,
}
Expand description
Acts as the result of parsing Declaration
s, Expression
s, etc.
Some Expression
s need to be able to create VariableDeclaration
s,
so this struct is used to “bubble up” those declarations to a viable
place in the AST.
Fields
var_decls: Vec<VariableDeclaration>
value: T
Trait Implementations
sourceimpl<T: Clone> Clone for ParserLifter<T>
impl<T: Clone> Clone for ParserLifter<T>
sourcefn clone(&self) -> ParserLifter<T>
fn clone(&self) -> ParserLifter<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for ParserLifter<T>where
T: RefUnwindSafe,
impl<T> Send for ParserLifter<T>where
T: Send,
impl<T> Sync for ParserLifter<T>where
T: Sync,
impl<T> Unpin for ParserLifter<T>where
T: Unpin,
impl<T> UnwindSafe for ParserLifter<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more