pub enum Symbol<'string> {
Representation(Representation),
String(&'string str),
}Expand description
Tree node symbol.
Note that its char count must be 1.
Variants§
Representation(Representation)
Representation (potentially styled).
String(&'string str)
String (plain).
Trait Implementations§
Source§impl<'string> From<SpannedString<Style>> for Symbol<'string>
impl<'string> From<SpannedString<Style>> for Symbol<'string>
Source§fn from(represention: Representation) -> Self
fn from(represention: Representation) -> Self
Converts to this type from the input type.
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