Struct valkyrie_parser::DefineVariableNode
source · pub struct DefineVariableNode {
pub annotation_term: Vec<AnnotationTermNode>,
pub kw_let: KwLetNode,
pub let_pattern: LetPatternNode,
pub parameter_default: ParameterDefaultNode,
pub type_hint: TypeHintNode,
pub span: Range<u32>,
}
Fields§
§annotation_term: Vec<AnnotationTermNode>
§kw_let: KwLetNode
§let_pattern: LetPatternNode
§parameter_default: ParameterDefaultNode
§type_hint: TypeHintNode
§span: Range<u32>
Trait Implementations§
source§impl Clone for DefineVariableNode
impl Clone for DefineVariableNode
source§fn clone(&self) -> DefineVariableNode
fn clone(&self) -> DefineVariableNode
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 DefineVariableNode
impl Debug for DefineVariableNode
source§impl FromStr for DefineVariableNode
impl FromStr for DefineVariableNode
§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 DefineVariableNode
impl Hash for DefineVariableNode
source§impl YggdrasilNode for DefineVariableNode
impl YggdrasilNode for DefineVariableNode
Auto Trait Implementations§
impl RefUnwindSafe for DefineVariableNode
impl Send for DefineVariableNode
impl Sync for DefineVariableNode
impl Unpin for DefineVariableNode
impl UnwindSafe for DefineVariableNode
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