Struct sway_ast::expr::ExprStructField
source · pub struct ExprStructField {
pub field_name: Ident,
pub expr_opt: Option<(ColonToken, Box<Expr>)>,
}
Fields§
§field_name: Ident
§expr_opt: Option<(ColonToken, Box<Expr>)>
Trait Implementations§
source§impl Clone for ExprStructField
impl Clone for ExprStructField
source§fn clone(&self) -> ExprStructField
fn clone(&self) -> ExprStructField
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 ExprStructField
impl Debug for ExprStructField
source§impl Serialize for ExprStructField
impl Serialize for ExprStructField
Auto Trait Implementations§
impl RefUnwindSafe for ExprStructField
impl Send for ExprStructField
impl Sync for ExprStructField
impl Unpin for ExprStructField
impl UnwindSafe for ExprStructField
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