Struct valkyrie_parser::MatchExpressionNode
source · pub struct MatchExpressionNode {
pub bind_l: Option<BindLNode>,
pub bind_r: Option<BindRNode>,
pub identifier: Option<IdentifierNode>,
pub inline_expression: InlineExpressionNode,
pub kw_match: KwMatchNode,
pub match_block: MatchBlockNode,
pub span: Range<u32>,
}
Fields§
§bind_l: Option<BindLNode>
§bind_r: Option<BindRNode>
§identifier: Option<IdentifierNode>
§inline_expression: InlineExpressionNode
§kw_match: KwMatchNode
§match_block: MatchBlockNode
§span: Range<u32>
Trait Implementations§
source§impl Clone for MatchExpressionNode
impl Clone for MatchExpressionNode
source§fn clone(&self) -> MatchExpressionNode
fn clone(&self) -> MatchExpressionNode
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 MatchExpressionNode
impl Debug for MatchExpressionNode
source§impl FromStr for MatchExpressionNode
impl FromStr for MatchExpressionNode
§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 MatchExpressionNode
impl Hash for MatchExpressionNode
source§impl YggdrasilNode for MatchExpressionNode
impl YggdrasilNode for MatchExpressionNode
Auto Trait Implementations§
impl RefUnwindSafe for MatchExpressionNode
impl Send for MatchExpressionNode
impl Sync for MatchExpressionNode
impl Unpin for MatchExpressionNode
impl UnwindSafe for MatchExpressionNode
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