pub enum NodeKind {
Root,
Item {
index: usize,
},
Field {
name: String,
},
Text,
}Expand description
Node type in the trim tree.
Variants§
Root
Root node (collection)
Item
Collection element (issue, MR, comment, diff)
Field
Field within an element (description, body, diff content)
Text
Text block (description body, diff content, log content)
Trait Implementations§
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more