pub struct PrettyDebug<'a, T>(pub &'a T);Expand description
Pretty-print a YAML document showing its structure and values.
This provides a human-readable view of the document structure, showing both the logical YAML structure and the actual values.
§Example
use yaml_edit::{Document, debug::PrettyDebug};
use std::str::FromStr;
let doc = Document::from_str("name: Alice\nage: 30").unwrap();
println!("{}", PrettyDebug(&doc));Tuple Fields§
§0: &'a TTrait Implementations§
Source§impl<'a> Display for PrettyDebug<'a, Document>
impl<'a> Display for PrettyDebug<'a, Document>
Source§impl<'a> Display for PrettyDebug<'a, Mapping>
impl<'a> Display for PrettyDebug<'a, Mapping>
Source§impl<'a> Display for PrettyDebug<'a, Scalar>
impl<'a> Display for PrettyDebug<'a, Scalar>
Auto Trait Implementations§
impl<'a, T> Freeze for PrettyDebug<'a, T>
impl<'a, T> RefUnwindSafe for PrettyDebug<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for PrettyDebug<'a, T>where
T: Sync,
impl<'a, T> Sync for PrettyDebug<'a, T>where
T: Sync,
impl<'a, T> Unpin for PrettyDebug<'a, T>
impl<'a, T> UnsafeUnpin for PrettyDebug<'a, T>
impl<'a, T> UnwindSafe for PrettyDebug<'a, T>where
T: RefUnwindSafe,
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