pub struct ShellFormatOptions { /* private fields */ }Expand description
Formatter option types exposed by the shell formatter.
Implementations§
Source§impl ShellFormatOptions
impl ShellFormatOptions
pub fn dialect(&self) -> ShellDialect
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 with_dialect(self, value: ShellDialect) -> Self
pub fn with_indent_style(self, value: IndentStyle) -> Self
pub fn with_binary_next_line(self, value: bool) -> Self
pub fn with_switch_case_indent(self, value: bool) -> Self
pub fn with_space_redirects(self, value: bool) -> Self
pub fn with_keep_padding(self, value: bool) -> Self
pub fn with_function_next_line(self, value: bool) -> Self
pub fn with_never_split(self, value: bool) -> Self
pub fn with_simplify(self, value: bool) -> Self
pub fn with_minify(self, value: bool) -> Self
pub fn with_indent_width(self, indent_width: u8) -> Self
pub fn resolve( &self, source: &str, path: Option<&Path>, ) -> ResolvedShellFormatOptions
Trait Implementations§
Source§impl Clone for ShellFormatOptions
impl Clone for ShellFormatOptions
Source§fn clone(&self) -> ShellFormatOptions
fn clone(&self) -> ShellFormatOptions
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 ShellFormatOptions
impl Debug for ShellFormatOptions
Source§impl Default for ShellFormatOptions
impl Default for ShellFormatOptions
Source§impl PartialEq for ShellFormatOptions
impl PartialEq for ShellFormatOptions
Source§fn eq(&self, other: &ShellFormatOptions) -> bool
fn eq(&self, other: &ShellFormatOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ShellFormatOptions
impl StructuralPartialEq for ShellFormatOptions
Auto Trait Implementations§
impl Freeze for ShellFormatOptions
impl RefUnwindSafe for ShellFormatOptions
impl Send for ShellFormatOptions
impl Sync for ShellFormatOptions
impl Unpin for ShellFormatOptions
impl UnsafeUnpin for ShellFormatOptions
impl UnwindSafe for ShellFormatOptions
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