Struct valkyrie_ast::EncodeDeclaration
source · pub struct EncodeDeclaration {
pub annotations: AnnotationNode,
pub name: IdentifierNode,
pub value: Option<ExpressionKind>,
pub span: Range<u32>,
}
Expand description
Name = 0x00
Fields§
§annotations: AnnotationNode
The documentation for this field.
name: IdentifierNode
The identifier of the field.
value: Option<ExpressionKind>
The value of the field if exists.
span: Range<u32>
The range of the node.
Trait Implementations§
source§impl Clone for EncodeDeclaration
impl Clone for EncodeDeclaration
source§fn clone(&self) -> EncodeDeclaration
fn clone(&self) -> EncodeDeclaration
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 EncodeDeclaration
impl Debug for EncodeDeclaration
source§impl From<EncodeDeclaration> for FlagTerm
impl From<EncodeDeclaration> for FlagTerm
source§fn from(o: EncodeDeclaration) -> Self
fn from(o: EncodeDeclaration) -> Self
Converts to this type from the input type.
source§impl Hash for EncodeDeclaration
impl Hash for EncodeDeclaration
source§impl PartialEq for EncodeDeclaration
impl PartialEq for EncodeDeclaration
source§fn eq(&self, other: &EncodeDeclaration) -> bool
fn eq(&self, other: &EncodeDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EncodeDeclaration
impl StructuralPartialEq for EncodeDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for EncodeDeclaration
impl Send for EncodeDeclaration
impl Sync for EncodeDeclaration
impl Unpin for EncodeDeclaration
impl UnwindSafe for EncodeDeclaration
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