Struct valkyrie_parser::SwitchStatementNode
source · pub struct SwitchStatementNode {
pub kw_switch: KwSwitchNode,
pub match_block: MatchBlockNode,
pub span: Range<u32>,
}
Fields§
§kw_switch: KwSwitchNode
§match_block: MatchBlockNode
§span: Range<u32>
Trait Implementations§
source§impl Clone for SwitchStatementNode
impl Clone for SwitchStatementNode
source§fn clone(&self) -> SwitchStatementNode
fn clone(&self) -> SwitchStatementNode
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 SwitchStatementNode
impl Debug for SwitchStatementNode
source§impl FromStr for SwitchStatementNode
impl FromStr for SwitchStatementNode
§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 SwitchStatementNode
impl Hash for SwitchStatementNode
source§impl YggdrasilNode for SwitchStatementNode
impl YggdrasilNode for SwitchStatementNode
Auto Trait Implementations§
impl RefUnwindSafe for SwitchStatementNode
impl Send for SwitchStatementNode
impl Sync for SwitchStatementNode
impl Unpin for SwitchStatementNode
impl UnwindSafe for SwitchStatementNode
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