Struct valkyrie_parser::MatchTypeNode
source · pub struct MatchTypeNode {
pub if_guard: IfGuardNode,
pub kw_type: KwTypeNode,
pub match_statement: Vec<MatchStatementNode>,
pub type_expression: TypeExpressionNode,
pub span: Range<u32>,
}
Fields§
§if_guard: IfGuardNode
§kw_type: KwTypeNode
§match_statement: Vec<MatchStatementNode>
§type_expression: TypeExpressionNode
§span: Range<u32>
Trait Implementations§
source§impl Clone for MatchTypeNode
impl Clone for MatchTypeNode
source§fn clone(&self) -> MatchTypeNode
fn clone(&self) -> MatchTypeNode
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 MatchTypeNode
impl Debug for MatchTypeNode
source§impl FromStr for MatchTypeNode
impl FromStr for MatchTypeNode
§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 MatchTypeNode
impl Hash for MatchTypeNode
source§impl YggdrasilNode for MatchTypeNode
impl YggdrasilNode for MatchTypeNode
Auto Trait Implementations§
impl RefUnwindSafe for MatchTypeNode
impl Send for MatchTypeNode
impl Sync for MatchTypeNode
impl Unpin for MatchTypeNode
impl UnwindSafe for MatchTypeNode
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