pub struct VariantExpr {
pub ty: Ident,
pub variant: Ident,
pub fields: Vec<(Ident, Expr)>,
pub has_braces: bool,
}Expand description
Type::Variant or Type::Variant { field: expr }.
Fields§
§ty: Ident§variant: Ident§fields: Vec<(Ident, Expr)>§has_braces: boolTrait Implementations§
Source§impl Clone for VariantExpr
impl Clone for VariantExpr
Auto Trait Implementations§
impl !Send for VariantExpr
impl !Sync for VariantExpr
impl Freeze for VariantExpr
impl RefUnwindSafe for VariantExpr
impl Unpin for VariantExpr
impl UnsafeUnpin for VariantExpr
impl UnwindSafe for VariantExpr
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