Struct tom::ast::StringLit [−][src]
pub struct StringLit(_);
Methods
impl StringLit
[src]
impl StringLit
pub fn cast(node: CstNode, doc: &TomlDoc) -> Option<StringLit>
[src]
pub fn cast(node: CstNode, doc: &TomlDoc) -> Option<StringLit>
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 StringLit
[src]
impl StringLit
Trait Implementations
impl Debug for StringLit
[src]
impl Debug for StringLit
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 StringLit
[src]
impl Clone for StringLit
fn clone(&self) -> StringLit
[src]
fn clone(&self) -> StringLit
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 StringLit
[src]
impl Copy for StringLit
impl PartialEq for StringLit
[src]
impl PartialEq for StringLit
fn eq(&self, other: &StringLit) -> bool
[src]
fn eq(&self, other: &StringLit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StringLit) -> bool
[src]
fn ne(&self, other: &StringLit) -> bool
This method tests for !=
.
impl Eq for StringLit
[src]
impl Eq for StringLit
impl AstNode for StringLit
[src]
impl AstNode for StringLit
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<StringLit> for CstNode
[src]
impl From<StringLit> for CstNode