pub struct StyleConfig {
pub wrap: Option<WrapMode>,
pub blank_lines: BlankLines,
pub math_delimiter_style: MathDelimiterStyle,
pub math_indent: usize,
pub tab_stops: TabStopMode,
pub tab_width: usize,
pub built_in_greedy_wrap: bool,
}Expand description
Formatting style configuration. Groups all style-related settings together.
Fields§
§wrap: Option<WrapMode>Text wrapping mode
blank_lines: BlankLinesBlank line handling between blocks
math_delimiter_style: MathDelimiterStyleMath delimiter style preference
math_indent: usizeMath indentation (spaces)
tab_stops: TabStopModeTab stop handling (normalize or preserve)
tab_width: usizeTab width for expanding tabs when normalizing
built_in_greedy_wrap: boolUse panache-native greedy wrapping instead of textwrap.
Trait Implementations§
Source§impl Clone for StyleConfig
impl Clone for StyleConfig
Source§fn clone(&self) -> StyleConfig
fn clone(&self) -> StyleConfig
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 StyleConfig
impl Debug for StyleConfig
Source§impl Default for StyleConfig
impl Default for StyleConfig
Source§impl<'de> Deserialize<'de> for StyleConfigwhere
StyleConfig: Default,
impl<'de> Deserialize<'de> for StyleConfigwhere
StyleConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StyleConfig
impl PartialEq for StyleConfig
impl StructuralPartialEq for StyleConfig
Auto Trait Implementations§
impl Freeze for StyleConfig
impl RefUnwindSafe for StyleConfig
impl Send for StyleConfig
impl Sync for StyleConfig
impl Unpin for StyleConfig
impl UnsafeUnpin for StyleConfig
impl UnwindSafe for StyleConfig
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