pub struct ResolvedShellFormatOptions { /* private fields */ }Expand description
Formatter option types exposed by the shell formatter.
Implementations§
Source§impl ResolvedShellFormatOptions
impl ResolvedShellFormatOptions
pub fn dialect(&self) -> ParseDialect
pub fn indent_style(&self) -> IndentStyle
pub fn indent_width(&self) -> u8
pub fn binary_next_line(&self) -> bool
pub fn switch_case_indent(&self) -> bool
pub fn space_redirects(&self) -> bool
pub fn keep_padding(&self) -> bool
pub fn function_next_line(&self) -> bool
pub fn never_split(&self) -> bool
pub fn simplify(&self) -> bool
pub fn minify(&self) -> bool
pub fn compact_layout(&self) -> bool
pub fn line_ending(&self) -> LineEnding
Trait Implementations§
Source§impl Clone for ResolvedShellFormatOptions
impl Clone for ResolvedShellFormatOptions
Source§fn clone(&self) -> ResolvedShellFormatOptions
fn clone(&self) -> ResolvedShellFormatOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedShellFormatOptions
impl Debug for ResolvedShellFormatOptions
Source§impl PartialEq for ResolvedShellFormatOptions
impl PartialEq for ResolvedShellFormatOptions
Source§fn eq(&self, other: &ResolvedShellFormatOptions) -> bool
fn eq(&self, other: &ResolvedShellFormatOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolvedShellFormatOptions
impl StructuralPartialEq for ResolvedShellFormatOptions
Auto Trait Implementations§
impl Freeze for ResolvedShellFormatOptions
impl RefUnwindSafe for ResolvedShellFormatOptions
impl Send for ResolvedShellFormatOptions
impl Sync for ResolvedShellFormatOptions
impl Unpin for ResolvedShellFormatOptions
impl UnsafeUnpin for ResolvedShellFormatOptions
impl UnwindSafe for ResolvedShellFormatOptions
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