pub struct KdlNodeFormat {
pub leading: String,
pub before_ty_name: String,
pub after_ty_name: String,
pub after_ty: String,
pub before_children: String,
pub before_terminator: String,
pub terminator: String,
pub trailing: String,
}Expand description
Formatting details for KdlNode.
Fields§
§leading: StringWhitespace and comments preceding the node itself.
before_ty_name: StringWhitespace and comments between the opening ( of a type annotation and the actual annotation name.
after_ty_name: StringWhitespace and comments between the annotation name and the closing ).
after_ty: StringWhitespace and comments after a node’s type annotation.
before_children: StringWhitespace and comments preceding the node’s children block.
before_terminator: StringWhitespace and comments right before the node’s terminator.
terminator: StringThe terminator for the node.
trailing: StringWhitespace and comments following the node itself, after the terminator.
Trait Implementations§
Source§impl Clone for KdlNodeFormat
impl Clone for KdlNodeFormat
Source§fn clone(&self) -> KdlNodeFormat
fn clone(&self) -> KdlNodeFormat
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 KdlNodeFormat
impl Debug for KdlNodeFormat
Source§impl Default for KdlNodeFormat
impl Default for KdlNodeFormat
Source§fn default() -> KdlNodeFormat
fn default() -> KdlNodeFormat
Returns the “default value” for a type. Read more
Source§impl Hash for KdlNodeFormat
impl Hash for KdlNodeFormat
Source§impl PartialEq for KdlNodeFormat
impl PartialEq for KdlNodeFormat
impl Eq for KdlNodeFormat
impl StructuralPartialEq for KdlNodeFormat
Auto Trait Implementations§
impl Freeze for KdlNodeFormat
impl RefUnwindSafe for KdlNodeFormat
impl Send for KdlNodeFormat
impl Sync for KdlNodeFormat
impl Unpin for KdlNodeFormat
impl UnwindSafe for KdlNodeFormat
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