pub struct Node {
pub key_repr: String,
pub value_repr: String,
pub open_brace: String,
pub close_brace: String,
pub empty: String,
pub last: bool,
pub is_tuple: bool,
pub is_namedtuple: bool,
pub children: Option<Vec<Node>>,
pub key_separator: String,
pub separator: String,
}Expand description
A node in a repr tree. May be atomic or a container. Port of
rich.pretty.Node.
Fields§
§key_repr: String§value_repr: String§open_brace: String§close_brace: String§empty: String§last: bool§is_tuple: bool§is_namedtuple: bool§children: Option<Vec<Node>>§key_separator: String§separator: StringImplementations§
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more