pub struct LayoutOverrides {
pub line_width: Option<usize>,
pub tab_size: Option<usize>,
pub dangle_parens: Option<bool>,
pub always_wrap: Option<bool>,
pub max_pargs_hwrap: Option<usize>,
}Expand description
Per-command-form layout hints that override global crate::Config values.
Fields§
§line_width: Option<usize>Override line width for this command form.
tab_size: Option<usize>Override indentation width for this command form.
dangle_parens: Option<bool>Override dangling-paren behavior for this command form.
always_wrap: Option<bool>Force this command form into a wrapped layout.
max_pargs_hwrap: Option<usize>Override the positional-argument hanging-wrap threshold for this form.
Trait Implementations§
Source§impl Clone for LayoutOverrides
impl Clone for LayoutOverrides
Source§fn clone(&self) -> LayoutOverrides
fn clone(&self) -> LayoutOverrides
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 LayoutOverrides
impl Debug for LayoutOverrides
Source§impl Default for LayoutOverrides
impl Default for LayoutOverrides
Source§fn default() -> LayoutOverrides
fn default() -> LayoutOverrides
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutOverrides
impl<'de> Deserialize<'de> for LayoutOverrides
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 LayoutOverrides
impl PartialEq for LayoutOverrides
impl Eq for LayoutOverrides
impl StructuralPartialEq for LayoutOverrides
Auto Trait Implementations§
impl Freeze for LayoutOverrides
impl RefUnwindSafe for LayoutOverrides
impl Send for LayoutOverrides
impl Sync for LayoutOverrides
impl Unpin for LayoutOverrides
impl UnsafeUnpin for LayoutOverrides
impl UnwindSafe for LayoutOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.