pub struct PrettyObject {
pub name: String,
pub fields: Vec<(Option<String>, PrettyValue)>,
pub kind: ObjectRepr,
}Expand description
An object with a structured repr: a class name and its fields, each
positional (None key) or named.
Fields§
§name: String§fields: Vec<(Option<String>, PrettyValue)>§kind: ObjectReprImplementations§
Source§impl PrettyObject
impl PrettyObject
Sourcepub fn new(
name: impl Into<String>,
kind: ObjectRepr,
fields: Vec<(Option<String>, PrettyValue)>,
) -> Self
pub fn new( name: impl Into<String>, kind: ObjectRepr, fields: Vec<(Option<String>, PrettyValue)>, ) -> Self
An object with the given class name, structured repr and fields.
Trait Implementations§
Source§impl Clone for PrettyObject
impl Clone for PrettyObject
Source§impl Debug for PrettyObject
impl Debug for PrettyObject
Source§impl PartialEq for PrettyObject
impl PartialEq for PrettyObject
impl StructuralPartialEq for PrettyObject
Auto Trait Implementations§
impl Freeze for PrettyObject
impl RefUnwindSafe for PrettyObject
impl Send for PrettyObject
impl Sync for PrettyObject
impl Unpin for PrettyObject
impl UnsafeUnpin for PrettyObject
impl UnwindSafe for PrettyObject
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