pub struct Node {
    pub index: usize,
    pub node_type: NodeType,
    pub begin_at: usize,
    pub end_at: usize,
    pub end_tag: Option<RefNode>,
    pub prev: Option<Weak<RefCell<Node>>>,
    pub parent: Option<Weak<RefCell<Node>>>,
    pub root: Option<Weak<RefCell<Node>>>,
    pub document: Option<Weak<RefCell<Doc>>>,
    pub content: Option<Vec<char>>,
    pub childs: Option<Vec<RefNode>>,
    pub meta: Option<RefCell<TagMeta>>,
}
Expand description

Fields

index: usizenode_type: NodeTypebegin_at: usizeend_at: usizeend_tag: Option<RefNode>prev: Option<Weak<RefCell<Node>>>parent: Option<Weak<RefCell<Node>>>root: Option<Weak<RefCell<Node>>>document: Option<Weak<RefCell<Doc>>>content: Option<Vec<char>>childs: Option<Vec<RefNode>>meta: Option<RefCell<TagMeta>>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.