Enum rsure::node::SureNode[][src]

pub enum SureNode {
    Enter {
        name: String,
        atts: AttMap,
    },
    Leave,
    File {
        name: String,
        atts: AttMap,
    },
    Sep,
}

Variants

Enter

Fields of Enter

name: Stringatts: AttMap
Leave
File

Fields of File

name: Stringatts: AttMap
Sep

Implementations

impl SureNode[src]

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

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

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

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

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

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

pub fn size(&self) -> u64[src]

pub fn name(&self) -> &str[src]

Get the name of this node. Panics if the node type does not have an associated name.

pub fn get_name(&self) -> Option<&str>[src]

Safely get the name of this node.

pub fn kind(&self) -> &str[src]

Get a nice representation of the kind of this node. Returns “???” if the kind isn’t meaningful.

pub fn atts(&self) -> Option<&AttMap>[src]

Access the nodes attributes.

pub fn atts_mut(&mut self) -> Option<&mut AttMap>[src]

Access the nodes attributes mutably.

Trait Implementations

impl Clone for SureNode[src]

impl Debug for SureNode[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.