Struct valkyrie_ast::ExpressionContext
source · pub struct ExpressionContext {
pub type_level: bool,
pub allow_newline: bool,
pub allow_curly: bool,
}
Expand description
Environment for expression parsing
Fields§
§type_level: bool
Weather the expression is on type level
allow_newline: bool
Weather the expression allow new line in postfix calls
allow_curly: bool
Weather the expression allow curly braces in postfix calls
Implementations§
Trait Implementations§
source§impl Clone for ExpressionContext
impl Clone for ExpressionContext
source§fn clone(&self) -> ExpressionContext
fn clone(&self) -> ExpressionContext
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 Debug for ExpressionContext
impl Debug for ExpressionContext
source§impl Default for ExpressionContext
impl Default for ExpressionContext
source§impl Hash for ExpressionContext
impl Hash for ExpressionContext
source§impl PartialEq for ExpressionContext
impl PartialEq for ExpressionContext
source§fn eq(&self, other: &ExpressionContext) -> bool
fn eq(&self, other: &ExpressionContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExpressionContext
impl Eq for ExpressionContext
impl StructuralPartialEq for ExpressionContext
Auto Trait Implementations§
impl RefUnwindSafe for ExpressionContext
impl Send for ExpressionContext
impl Sync for ExpressionContext
impl Unpin for ExpressionContext
impl UnwindSafe for ExpressionContext
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