Struct tom::CstNode [−][src]
pub struct CstNode(_);
Methods
impl CstNode
[src]
impl CstNode
pub fn symbol(self, doc: &TomlDoc) -> Symbol
[src]
pub fn symbol(self, doc: &TomlDoc) -> Symbol
pub fn range(self, doc: &TomlDoc) -> TextRange
[src]
pub fn range(self, doc: &TomlDoc) -> TextRange
pub fn kind(self, doc: &TomlDoc) -> CstNodeKind
[src]
pub fn kind(self, doc: &TomlDoc) -> CstNodeKind
pub fn is_leaf(self, doc: &TomlDoc) -> bool
[src]
pub fn is_leaf(self, doc: &TomlDoc) -> bool
pub fn parent(self, doc: &TomlDoc) -> Option<CstNode>
[src]
pub fn parent(self, doc: &TomlDoc) -> Option<CstNode>
pub fn children(self, doc: &TomlDoc) -> CstChildren
[src]
pub fn children(self, doc: &TomlDoc) -> CstChildren
pub fn next_sibling(self, doc: &TomlDoc) -> Option<CstNode>
[src]
pub fn next_sibling(self, doc: &TomlDoc) -> Option<CstNode>
pub fn prev_sibling(self, doc: &TomlDoc) -> Option<CstNode>
[src]
pub fn prev_sibling(self, doc: &TomlDoc) -> Option<CstNode>
pub fn get_text(self, doc: &TomlDoc) -> String
[src]
pub fn get_text(self, doc: &TomlDoc) -> String
pub fn debug(self, doc: &TomlDoc) -> String
[src]
pub fn debug(self, doc: &TomlDoc) -> String
Trait Implementations
impl Clone for CstNode
[src]
impl Clone for CstNode
fn clone(&self) -> CstNode
[src]
fn clone(&self) -> CstNode
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)
Performs copy-assignment from source
. Read more
impl Copy for CstNode
[src]
impl Copy for CstNode
impl PartialEq for CstNode
[src]
impl PartialEq for CstNode
fn eq(&self, other: &CstNode) -> bool
[src]
fn eq(&self, other: &CstNode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CstNode) -> bool
[src]
fn ne(&self, other: &CstNode) -> bool
This method tests for !=
.
impl Eq for CstNode
[src]
impl Eq for CstNode
impl PartialOrd for CstNode
[src]
impl PartialOrd for CstNode
fn partial_cmp(&self, other: &CstNode) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &CstNode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &CstNode) -> bool
[src]
fn lt(&self, other: &CstNode) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &CstNode) -> bool
[src]
fn le(&self, other: &CstNode) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &CstNode) -> bool
[src]
fn gt(&self, other: &CstNode) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &CstNode) -> bool
[src]
fn ge(&self, other: &CstNode) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for CstNode
[src]
impl Ord for CstNode
fn cmp(&self, other: &CstNode) -> Ordering
[src]
fn cmp(&self, other: &CstNode) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for CstNode
[src]
impl Hash for CstNode
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for CstNode
[src]
impl Debug for CstNode
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 From<Doc> for CstNode
[src]
impl From<Doc> for CstNode
impl From<Table> for CstNode
[src]
impl From<Table> for CstNode
impl From<ArrayTable> for CstNode
[src]
impl From<ArrayTable> for CstNode
fn from(ast: ArrayTable) -> CstNode
[src]
fn from(ast: ArrayTable) -> CstNode
Performs the conversion.
impl From<TableHeader> for CstNode
[src]
impl From<TableHeader> for CstNode
fn from(ast: TableHeader) -> CstNode
[src]
fn from(ast: TableHeader) -> CstNode
Performs the conversion.
impl From<Entry> for CstNode
[src]
impl From<Entry> for CstNode
impl From<Key> for CstNode
[src]
impl From<Key> for CstNode
impl From<Value> for CstNode
[src]
impl From<Value> for CstNode
impl From<StringLit> for CstNode
[src]
impl From<StringLit> for CstNode
impl From<BareKey> for CstNode
[src]
impl From<BareKey> for CstNode
impl From<Array> for CstNode
[src]
impl From<Array> for CstNode
impl From<Dict> for CstNode
[src]
impl From<Dict> for CstNode
impl From<Number> for CstNode
[src]
impl From<Number> for CstNode
impl From<Bool> for CstNode
[src]
impl From<Bool> for CstNode
impl From<DateTime> for CstNode
[src]
impl From<DateTime> for CstNode