Struct valkyrie_parser::DecimalXNode
source · pub struct DecimalXNode {
pub base: IntegerNode,
pub dot: Option<DotNode>,
pub lhs: DigitsXNode,
pub rhs: Option<DigitsXNode>,
pub shift: Option<IntegerNode>,
pub sign: Option<SignNode>,
pub unit: Option<IdentifierNode>,
pub span: Range<u32>,
}
Fields§
§base: IntegerNode
§dot: Option<DotNode>
§lhs: DigitsXNode
§rhs: Option<DigitsXNode>
§shift: Option<IntegerNode>
§sign: Option<SignNode>
§unit: Option<IdentifierNode>
§span: Range<u32>
Trait Implementations§
source§impl Clone for DecimalXNode
impl Clone for DecimalXNode
source§fn clone(&self) -> DecimalXNode
fn clone(&self) -> DecimalXNode
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 DecimalXNode
impl Debug for DecimalXNode
source§impl FromStr for DecimalXNode
impl FromStr for DecimalXNode
§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 DecimalXNode
impl Hash for DecimalXNode
source§impl YggdrasilNode for DecimalXNode
impl YggdrasilNode for DecimalXNode
Auto Trait Implementations§
impl RefUnwindSafe for DecimalXNode
impl Send for DecimalXNode
impl Sync for DecimalXNode
impl Unpin for DecimalXNode
impl UnwindSafe for DecimalXNode
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