pub struct FieldDecl {
pub name: Ident,
pub ty: TypeExpr,
pub is_pub: bool,
pub span: Span,
}Expand description
A struct field: name: T, optionally pub (spec 3.4). Visibility
follows the same rule as everything else (section 3.2): a private
field is visible in the declaring module and its descendants, which
includes the struct’s own methods.
Fields§
§name: Ident§ty: TypeExpr§is_pub: bool§span: SpanTrait Implementations§
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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