Struct valkyrie_parser::DefineExtendsNode
source · pub struct DefineExtendsNode {
pub annotation_head: AnnotationHeadNode,
pub define_constraint: Option<DefineConstraintNode>,
pub kw_extends: KwExtendsNode,
pub trait_block: TraitBlockNode,
pub type_expression: TypeExpressionNode,
pub type_hint: TypeHintNode,
pub span: Range<u32>,
}
Fields§
§annotation_head: AnnotationHeadNode
§define_constraint: Option<DefineConstraintNode>
§kw_extends: KwExtendsNode
§trait_block: TraitBlockNode
§type_expression: TypeExpressionNode
§type_hint: TypeHintNode
§span: Range<u32>
Trait Implementations§
source§impl Clone for DefineExtendsNode
impl Clone for DefineExtendsNode
source§fn clone(&self) -> DefineExtendsNode
fn clone(&self) -> DefineExtendsNode
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 DefineExtendsNode
impl Debug for DefineExtendsNode
source§impl FromStr for DefineExtendsNode
impl FromStr for DefineExtendsNode
§type Err = YggdrasilError<ValkyrieRule>
type Err = YggdrasilError<ValkyrieRule>
The associated error which can be returned from parsing.
source§fn from_str(input: &str) -> Result<Self, YggdrasilError<ValkyrieRule>>
fn from_str(input: &str) -> Result<Self, YggdrasilError<ValkyrieRule>>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for DefineExtendsNode
impl Hash for DefineExtendsNode
source§impl YggdrasilNode for DefineExtendsNode
impl YggdrasilNode for DefineExtendsNode
Auto Trait Implementations§
impl RefUnwindSafe for DefineExtendsNode
impl Send for DefineExtendsNode
impl Sync for DefineExtendsNode
impl Unpin for DefineExtendsNode
impl UnwindSafe for DefineExtendsNode
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