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 Declarations, Expressions, etc.
Some Expressions need to be able to create VariableDeclarations,
so this struct is used to “bubble up” those declarations to a viable
place in the AST.
Fields
var_decls: Vec<VariableDeclaration>value: TTrait 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 · sourceconst fn clone_from(&mut self, source: &Self)
const 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