pub struct KdlDocumentFormat {
pub leading: String,
pub trailing: String,
}Expand description
Formatting details for KdlDocuments.
Fields§
§leading: StringWhitespace and comments preceding the document’s first node.
trailing: StringWhitespace and comments following the document’s last node.
Trait Implementations§
Source§impl Clone for KdlDocumentFormat
impl Clone for KdlDocumentFormat
Source§fn clone(&self) -> KdlDocumentFormat
fn clone(&self) -> KdlDocumentFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KdlDocumentFormat
impl Debug for KdlDocumentFormat
Source§impl Default for KdlDocumentFormat
impl Default for KdlDocumentFormat
Source§fn default() -> KdlDocumentFormat
fn default() -> KdlDocumentFormat
Returns the “default value” for a type. Read more
Source§impl Hash for KdlDocumentFormat
impl Hash for KdlDocumentFormat
Source§impl PartialEq for KdlDocumentFormat
impl PartialEq for KdlDocumentFormat
impl Eq for KdlDocumentFormat
impl StructuralPartialEq for KdlDocumentFormat
Auto Trait Implementations§
impl Freeze for KdlDocumentFormat
impl RefUnwindSafe for KdlDocumentFormat
impl Send for KdlDocumentFormat
impl Sync for KdlDocumentFormat
impl Unpin for KdlDocumentFormat
impl UnwindSafe for KdlDocumentFormat
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