[][src]Enum taplo::analytics::NodeRef

pub enum NodeRef<'n> {
    Root(&'n RootNode),
    Table(&'n TableNode),
    Entry(&'n EntryNode),
    Key(&'n KeyNode),
    Value(&'n ValueNode),
    Array(&'n ArrayNode),
}

Variants

Root(&'n RootNode)
Table(&'n TableNode)
Entry(&'n EntryNode)
Key(&'n KeyNode)
Value(&'n ValueNode)
Array(&'n ArrayNode)

Implementations

impl<'_> NodeRef<'_>[src]

pub fn is_root(&self) -> bool[src]

pub fn is_table(&self) -> bool[src]

pub fn is_entry(&self) -> bool[src]

pub fn is_key(&self) -> bool[src]

pub fn is_value(&self) -> bool[src]

pub fn is_array(&self) -> bool[src]

impl<'_> NodeRef<'_>[src]

pub fn text_ranges(&self) -> TextRanges[src]

pub fn into_node(self) -> Node[src]

Trait Implementations

impl<'n> Clone for NodeRef<'n>[src]

impl<'n> Copy for NodeRef<'n>[src]

impl<'n> Debug for NodeRef<'n>[src]

impl<'n> Eq for NodeRef<'n>[src]

impl<'n> Hash for NodeRef<'n>[src]

impl<'n> PartialEq<NodeRef<'n>> for NodeRef<'n>[src]

impl<'n> StructuralEq for NodeRef<'n>[src]

impl<'n> StructuralPartialEq for NodeRef<'n>[src]

Auto Trait Implementations

impl<'n> !RefUnwindSafe for NodeRef<'n>

impl<'n> !Send for NodeRef<'n>

impl<'n> !Sync for NodeRef<'n>

impl<'n> Unpin for NodeRef<'n>

impl<'n> !UnwindSafe for NodeRef<'n>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.