pub struct Options { /* private fields */ }Expand description
Options to format an item.
Implementations
sourceimpl Options
impl Options
sourcepub const DEFAULT_MAX_COLUMNS: usize = 120usize
pub const DEFAULT_MAX_COLUMNS: usize = 120usize
The default max column number.
pub fn max_columns(self, n: usize) -> Self
pub fn disable_include(self) -> Self
pub fn include_dirs<P: AsRef<Path>>(self, dirs: Vec<P>) -> Self
pub fn include_cache_dir<P: AsRef<Path>>(self, dir: P) -> Self
pub fn default_off(self) -> Self
pub fn format_file<T: Parse + Format, P: AsRef<Path>>(
self,
path: P
) -> Result<String>
pub fn format_text<T: Parse + Format>(self, text: &str) -> Result<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more