pub struct BBNode {
pub text: String,
pub tag: BBTag,
pub value: Option<String>,
pub parent: Option<i32>,
pub children: Vec<i32>,
}Expand description
Node in the BBTag Tree with associated data
Fields§
§text: StringUnformatted string text
tag: BBTagAssociated tag
value: Option<String>Possible value related to tag (i.e. “4” in [SIZE=4])
parent: Option<i32>Parent node. Only root (id = 0) node should not have parent
children: Vec<i32>Child nodes
Implementations§
Trait Implementations§
impl Eq for BBNode
impl StructuralPartialEq for BBNode
Auto Trait Implementations§
impl Freeze for BBNode
impl RefUnwindSafe for BBNode
impl Send for BBNode
impl Sync for BBNode
impl Unpin for BBNode
impl UnwindSafe for BBNode
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