pub struct ExpressionStatement {
pub decorators: Vec<Decorator>,
pub is_declare: bool,
pub expression: Expression,
pub span: Range<usize>,
}Expand description
Represents an expression statement.
Fields§
§decorators: Vec<Decorator>Decorators associated with the statement.
is_declare: boolWhether the statement is declared with declare.
expression: ExpressionThe expression being evaluated.
span: Range<usize>Source span of the statement.
Trait Implementations§
Source§impl Clone for ExpressionStatement
impl Clone for ExpressionStatement
Source§fn clone(&self) -> ExpressionStatement
fn clone(&self) -> ExpressionStatement
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 Debug for ExpressionStatement
impl Debug for ExpressionStatement
Source§impl<'de> Deserialize<'de> for ExpressionStatement
impl<'de> Deserialize<'de> for ExpressionStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExpressionStatement
impl RefUnwindSafe for ExpressionStatement
impl Send for ExpressionStatement
impl Sync for ExpressionStatement
impl Unpin for ExpressionStatement
impl UnsafeUnpin for ExpressionStatement
impl UnwindSafe for ExpressionStatement
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