pub struct DefaultFormatState {
pub local_config: HashMap<String, Value>,
pub custom_state: HashMap<String, Value>,
pub indent_level: usize,
pub force_single_line: bool,
pub align_elements: bool,
}Expand description
Default format state implementation
This struct provides a default implementation of the format state.
Fields§
§local_config: HashMap<String, Value>Local configuration overrides
custom_state: HashMap<String, Value>Custom state values
indent_level: usizeCurrent indentation level
force_single_line: boolWhether to force single line formatting
align_elements: boolWhether to align elements
Trait Implementations§
Source§impl Clone for DefaultFormatState
impl Clone for DefaultFormatState
Source§fn clone(&self) -> DefaultFormatState
fn clone(&self) -> DefaultFormatState
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 DefaultFormatState
impl Debug for DefaultFormatState
Source§impl Default for DefaultFormatState
impl Default for DefaultFormatState
Source§fn default() -> DefaultFormatState
fn default() -> DefaultFormatState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultFormatState
impl RefUnwindSafe for DefaultFormatState
impl Send for DefaultFormatState
impl Sync for DefaultFormatState
impl Unpin for DefaultFormatState
impl UnsafeUnpin for DefaultFormatState
impl UnwindSafe for DefaultFormatState
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