[][src]Struct rustfmt_nightly::Config

pub struct Config {
    pub license_template: Option<Regex>,
    // some fields omitted


license_template: Option<Regex>


impl Config[src]

pub fn max_width(&self) -> usize[src]

pub fn hard_tabs(&self) -> bool[src]

pub fn tab_spaces(&self) -> usize[src]

pub fn newline_style(&self) -> NewlineStyle[src]

pub fn use_small_heuristics(&self) -> Heuristics[src]

pub fn indent_style(&self) -> IndentStyle[src]

pub fn wrap_comments(&self) -> bool[src]

pub fn format_code_in_doc_comments(&self) -> bool[src]

pub fn comment_width(&self) -> usize[src]

pub fn normalize_comments(&self) -> bool[src]

pub fn normalize_doc_attributes(&self) -> bool[src]

pub fn license_template_path(&self) -> String[src]

pub fn format_strings(&self) -> bool[src]

pub fn format_macro_matchers(&self) -> bool[src]

pub fn format_macro_bodies(&self) -> bool[src]

pub fn empty_item_single_line(&self) -> bool[src]

pub fn struct_lit_single_line(&self) -> bool[src]

pub fn fn_single_line(&self) -> bool[src]

pub fn where_single_line(&self) -> bool[src]

pub fn imports_indent(&self) -> IndentStyle[src]

pub fn imports_layout(&self) -> ListTactic[src]

pub fn merge_imports(&self) -> bool[src]

pub fn reorder_imports(&self) -> bool[src]

pub fn reorder_modules(&self) -> bool[src]

pub fn reorder_impl_items(&self) -> bool[src]

pub fn type_punctuation_density(&self) -> TypeDensity[src]

pub fn space_before_colon(&self) -> bool[src]

pub fn space_after_colon(&self) -> bool[src]

pub fn spaces_around_ranges(&self) -> bool[src]

pub fn binop_separator(&self) -> SeparatorPlace[src]

pub fn remove_nested_parens(&self) -> bool[src]

pub fn combine_control_expr(&self) -> bool[src]

pub fn overflow_delimited_expr(&self) -> bool[src]

pub fn struct_field_align_threshold(&self) -> usize[src]

pub fn enum_discrim_align_threshold(&self) -> usize[src]

pub fn match_arm_blocks(&self) -> bool[src]

pub fn force_multiline_blocks(&self) -> bool[src]

pub fn fn_args_layout(&self) -> Density[src]

pub fn brace_style(&self) -> BraceStyle[src]

pub fn control_brace_style(&self) -> ControlBraceStyle[src]

pub fn trailing_semicolon(&self) -> bool[src]

pub fn trailing_comma(&self) -> SeparatorTactic[src]

pub fn match_block_trailing_comma(&self) -> bool[src]

pub fn blank_lines_upper_bound(&self) -> usize[src]

pub fn blank_lines_lower_bound(&self) -> usize[src]

pub fn edition(&self) -> Edition[src]

pub fn version(&self) -> Version[src]

pub fn inline_attribute_width(&self) -> usize[src]

pub fn merge_derives(&self) -> bool[src]

pub fn use_try_shorthand(&self) -> bool[src]

pub fn use_field_init_shorthand(&self) -> bool[src]

pub fn force_explicit_abi(&self) -> bool[src]

pub fn condense_wildcard_suffixes(&self) -> bool[src]

pub fn color(&self) -> Color[src]

pub fn required_version(&self) -> String[src]

pub fn unstable_features(&self) -> bool[src]

pub fn disable_all_formatting(&self) -> bool[src]

pub fn skip_children(&self) -> bool[src]

pub fn hide_parse_errors(&self) -> bool[src]

pub fn error_on_line_overflow(&self) -> bool[src]

pub fn error_on_unformatted(&self) -> bool[src]

pub fn report_todo(&self) -> ReportTactic[src]

pub fn report_fixme(&self) -> ReportTactic[src]

pub fn ignore(&self) -> IgnoreList[src]

pub fn verbose(&self) -> Verbosity[src]

pub fn file_lines(&self) -> FileLines[src]

pub fn width_heuristics(&self) -> WidthHeuristics[src]

pub fn emit_mode(&self) -> EmitMode[src]

pub fn make_backup(&self) -> bool[src]

pub fn print_misformatted_file_names(&self) -> bool[src]

pub fn set(&mut self) -> ConfigSetter[src]

pub fn was_set(&self) -> ConfigWasSet[src]

pub fn is_valid_key_val(key: &str, val: &str) -> bool[src]

pub fn used_options(&self) -> PartialConfig[src]

pub fn all_options(&self) -> PartialConfig[src]

pub fn override_value(&mut self, key: &str, val: &str)[src]

pub fn is_hidden_option(name: &str) -> bool[src]

pub fn print_docs(out: &mut dyn Write, include_unstable: bool)[src]

pub fn is_default(&self, key: &str) -> bool[src]

Returns true if the config key was explicitly set and is the default value.

Trait Implementations

impl Clone for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl Send for Config

impl !Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

impl !RefUnwindSafe for Config

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]