Struct planus_types::ast::StructField
source · pub struct StructField {
pub span: Span,
pub ident: Identifier,
pub type_: Type,
pub assignment: Option<Literal>,
pub metadata: MetadataMap,
pub docstrings: Docstrings,
}Fields§
§span: Span§ident: Identifier§type_: Type§assignment: Option<Literal>§metadata: MetadataMap§docstrings: DocstringsTrait Implementations§
source§impl Clone for StructField
impl Clone for StructField
source§fn clone(&self) -> StructField
fn clone(&self) -> StructField
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 moreAuto Trait Implementations§
impl RefUnwindSafe for StructField
impl Send for StructField
impl Sync for StructField
impl Unpin for StructField
impl UnwindSafe for StructField
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