pub struct ExprStruct { /* private fields */ }
Expand description
A struct literal expression.
For example, Foo {x: 1, y: 2}
, or
Foo {x: 1, .. base}
, where base
is the Option<Expr>
.
Trait Implementations§
Source§impl Clone for ExprStruct
impl Clone for ExprStruct
Source§fn clone(&self) -> ExprStruct
fn clone(&self) -> ExprStruct
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 From<ExprStruct> for ExprKind
impl From<ExprStruct> for ExprKind
Source§fn from(e: ExprStruct) -> ExprKind
fn from(e: ExprStruct) -> ExprKind
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExprStruct
impl RefUnwindSafe for ExprStruct
impl Send for ExprStruct
impl Sync for ExprStruct
impl Unpin for ExprStruct
impl UnwindSafe for ExprStruct
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