Struct tom::ast::Number [−][src]
pub struct Number(_);
Methods
impl Number
[src]
impl Number
pub fn cast(node: CstNode, doc: &TomlDoc) -> Option<Number>
[src]
pub fn cast(node: CstNode, doc: &TomlDoc) -> Option<Number>
pub fn cst(self) -> CstNode
[src]
pub fn cst(self) -> CstNode
pub fn text(self, doc: &TomlDoc) -> &str
[src]
pub fn text(self, doc: &TomlDoc) -> &str
impl Number
[src]
impl Number
Trait Implementations
impl Debug for Number
[src]
impl Debug for Number
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Number
[src]
impl Clone for Number
fn clone(&self) -> Number
[src]
fn clone(&self) -> Number
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Number
[src]
impl Copy for Number
impl PartialEq for Number
[src]
impl PartialEq for Number
fn eq(&self, other: &Number) -> bool
[src]
fn eq(&self, other: &Number) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Number) -> bool
[src]
fn ne(&self, other: &Number) -> bool
This method tests for !=
.
impl Eq for Number
[src]
impl Eq for Number
impl AstNode for Number
[src]
impl AstNode for Number
fn cast(node: CstNode, doc: &TomlDoc) -> Option<Self> where
Self: Sized,
[src]
fn cast(node: CstNode, doc: &TomlDoc) -> Option<Self> where
Self: Sized,
fn cst(self) -> CstNode
[src]
fn cst(self) -> CstNode
impl From<Number> for CstNode
[src]
impl From<Number> for CstNode