pub enum Symbol<'string> {
SpannedString(SpannedString<Style>),
String(&'string str),
}Expand description
Tree node symbol.
Note that its char count must be 1.
Variants§
SpannedString(SpannedString<Style>)
Spanned string (potentially styled).
String(&'string str)
String (plain).
Trait Implementations§
Auto Trait Implementations§
impl<'string> Freeze for Symbol<'string>
impl<'string> RefUnwindSafe for Symbol<'string>
impl<'string> Send for Symbol<'string>
impl<'string> Sync for Symbol<'string>
impl<'string> Unpin for Symbol<'string>
impl<'string> UnsafeUnpin for Symbol<'string>
impl<'string> UnwindSafe for Symbol<'string>
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