pub struct EmitConfig {
pub indent_width: usize,
pub line_width: usize,
pub default_scalar_style: ScalarStyle,
pub default_collection_style: CollectionStyle,
}Expand description
Configuration for the emitter.
Fields§
§indent_width: usizeSpaces per indentation level (default 2).
line_width: usizeSoft line-width hint (default 80). Not currently enforced strictly.
default_scalar_style: ScalarStyleDefault style for scalars that have no explicit style set.
default_collection_style: CollectionStyleDefault style for collections.
Trait Implementations§
Source§impl Clone for EmitConfig
impl Clone for EmitConfig
Source§fn clone(&self) -> EmitConfig
fn clone(&self) -> EmitConfig
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 EmitConfig
impl Debug for EmitConfig
Auto Trait Implementations§
impl Freeze for EmitConfig
impl RefUnwindSafe for EmitConfig
impl Send for EmitConfig
impl Sync for EmitConfig
impl Unpin for EmitConfig
impl UnsafeUnpin for EmitConfig
impl UnwindSafe for EmitConfig
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