pub struct VariantField {
pub name: Ident,
pub ty: TypeExpr,
pub span: Span,
}Expand description
A named field of a variant: name: T. It has no visibility of its own:
a variant’s fields are as visible as the enum, and Rust rejects pub
on them.
Fields§
§name: Ident§ty: TypeExpr§span: SpanTrait Implementations§
Source§impl Clone for VariantField
impl Clone for VariantField
Source§impl Debug for VariantField
impl Debug for VariantField
Source§impl PartialEq for VariantField
impl PartialEq for VariantField
impl StructuralPartialEq for VariantField
Auto Trait Implementations§
impl Freeze for VariantField
impl RefUnwindSafe for VariantField
impl Send for VariantField
impl Sync for VariantField
impl Unpin for VariantField
impl UnsafeUnpin for VariantField
impl UnwindSafe for VariantField
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