Struct valkyrie_parser::NewStatementNode
source · pub struct NewStatementNode {
pub generic_hide: Option<GenericHideNode>,
pub kw_new: KwNewNode,
pub modifier_ahead: Vec<ModifierAheadNode>,
pub namepath: NamepathNode,
pub new_block: Option<NewBlockNode>,
pub tuple_literal: Option<TupleLiteralNode>,
pub span: Range<u32>,
}
Fields§
§generic_hide: Option<GenericHideNode>
§kw_new: KwNewNode
§modifier_ahead: Vec<ModifierAheadNode>
§namepath: NamepathNode
§new_block: Option<NewBlockNode>
§tuple_literal: Option<TupleLiteralNode>
§span: Range<u32>
Trait Implementations§
source§impl Clone for NewStatementNode
impl Clone for NewStatementNode
source§fn clone(&self) -> NewStatementNode
fn clone(&self) -> NewStatementNode
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 NewStatementNode
impl Debug for NewStatementNode
source§impl FromStr for NewStatementNode
impl FromStr for NewStatementNode
§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 NewStatementNode
impl Hash for NewStatementNode
source§impl YggdrasilNode for NewStatementNode
impl YggdrasilNode for NewStatementNode
Auto Trait Implementations§
impl RefUnwindSafe for NewStatementNode
impl Send for NewStatementNode
impl Sync for NewStatementNode
impl Unpin for NewStatementNode
impl UnwindSafe for NewStatementNode
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