Struct valkyrie_ast::FieldDeclaration
source · pub struct FieldDeclaration {
pub name: IdentifierNode,
pub annotations: AnnotationNode,
pub typing: Option<ExpressionKind>,
pub default: Option<ExpressionKind>,
pub span: Range<u32>,
}Expand description
field: Type = default
Fields§
§name: IdentifierNodeThe name of this field
annotations: AnnotationNodeThe modifiers of the declaration.
typing: Option<ExpressionKind>The type hint of this field
default: Option<ExpressionKind>The default value of this field
span: Range<u32>The range of the declaration.
Trait Implementations§
source§impl Clone for FieldDeclaration
impl Clone for FieldDeclaration
source§fn clone(&self) -> FieldDeclaration
fn clone(&self) -> FieldDeclaration
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 moresource§impl Debug for FieldDeclaration
impl Debug for FieldDeclaration
source§impl From<FieldDeclaration> for TraitTerm
impl From<FieldDeclaration> for TraitTerm
source§fn from(o: FieldDeclaration) -> Self
fn from(o: FieldDeclaration) -> Self
Converts to this type from the input type.
source§impl Hash for FieldDeclaration
impl Hash for FieldDeclaration
source§impl PartialEq for FieldDeclaration
impl PartialEq for FieldDeclaration
source§fn eq(&self, other: &FieldDeclaration) -> bool
fn eq(&self, other: &FieldDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for FieldDeclaration
impl StructuralPartialEq for FieldDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for FieldDeclaration
impl Send for FieldDeclaration
impl Sync for FieldDeclaration
impl Unpin for FieldDeclaration
impl UnwindSafe for FieldDeclaration
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