Struct sane_fmt::rules::Cfg

source ·
pub struct Cfg {
Show 170 fields pub indent_width: u8, pub line_width: u32, pub use_tabs: bool, pub new_line_kind: NewLineKind, pub quote_style: QuoteStyle, pub quote_props: QuoteProps, pub semi_colons: SemiColons, pub arrow_function_use_parentheses: UseParentheses, pub binary_expression_line_per_expression: bool, pub conditional_expression_line_per_expression: bool, pub jsx_quote_style: JsxQuoteStyle, pub jsx_multi_line_parens: JsxMultiLineParens, pub jsx_force_new_lines_surrounding_content: bool, pub jsx_opening_element_bracket_position: SameOrNextLinePosition, pub jsx_self_closing_element_bracket_position: SameOrNextLinePosition, pub member_expression_line_per_expression: bool, pub type_literal_separator_kind_single_line: SemiColonOrComma, pub type_literal_separator_kind_multi_line: SemiColonOrComma, pub module_sort_import_declarations: SortOrder, pub module_sort_export_declarations: SortOrder, pub import_declaration_sort_named_imports: SortOrder, pub export_declaration_sort_named_exports: SortOrder, pub ignore_node_comment_text: String, pub ignore_file_comment_text: String, pub arrow_function_brace_position: BracePosition, pub class_declaration_brace_position: BracePosition, pub class_expression_brace_position: BracePosition, pub constructor_brace_position: BracePosition, pub do_while_statement_brace_position: BracePosition, pub enum_declaration_brace_position: BracePosition, pub get_accessor_brace_position: BracePosition, pub if_statement_brace_position: BracePosition, pub interface_declaration_brace_position: BracePosition, pub for_statement_brace_position: BracePosition, pub for_in_statement_brace_position: BracePosition, pub for_of_statement_brace_position: BracePosition, pub function_declaration_brace_position: BracePosition, pub function_expression_brace_position: BracePosition, pub method_brace_position: BracePosition, pub module_declaration_brace_position: BracePosition, pub set_accessor_brace_position: BracePosition, pub static_block_brace_position: BracePosition, pub switch_case_brace_position: BracePosition, pub switch_statement_brace_position: BracePosition, pub try_statement_brace_position: BracePosition, pub while_statement_brace_position: BracePosition, pub arguments_prefer_hanging: PreferHanging, pub array_expression_prefer_hanging: PreferHanging, pub array_pattern_prefer_hanging: bool, pub do_while_statement_prefer_hanging: bool, pub export_declaration_prefer_hanging: bool, pub extends_clause_prefer_hanging: bool, pub for_statement_prefer_hanging: bool, pub for_in_statement_prefer_hanging: bool, pub for_of_statement_prefer_hanging: bool, pub if_statement_prefer_hanging: bool, pub implements_clause_prefer_hanging: bool, pub import_declaration_prefer_hanging: bool, pub jsx_attributes_prefer_hanging: bool, pub object_expression_prefer_hanging: bool, pub object_pattern_prefer_hanging: bool, pub parameters_prefer_hanging: PreferHanging, pub sequence_expression_prefer_hanging: bool, pub switch_statement_prefer_hanging: bool, pub tuple_type_prefer_hanging: PreferHanging, pub type_literal_prefer_hanging: bool, pub type_parameters_prefer_hanging: PreferHanging, pub union_and_intersection_type_prefer_hanging: bool, pub variable_statement_prefer_hanging: bool, pub while_statement_prefer_hanging: bool, pub enum_declaration_member_spacing: MemberSpacing, pub if_statement_next_control_flow_position: NextControlFlowPosition, pub try_statement_next_control_flow_position: NextControlFlowPosition, pub do_while_statement_next_control_flow_position: NextControlFlowPosition, pub binary_expression_operator_position: OperatorPosition, pub conditional_expression_operator_position: OperatorPosition, pub conditional_type_operator_position: OperatorPosition, pub if_statement_single_body_position: SameOrNextLinePosition, pub for_statement_single_body_position: SameOrNextLinePosition, pub for_in_statement_single_body_position: SameOrNextLinePosition, pub for_of_statement_single_body_position: SameOrNextLinePosition, pub while_statement_single_body_position: SameOrNextLinePosition, pub arguments_trailing_commas: TrailingCommas, pub parameters_trailing_commas: TrailingCommas, pub array_expression_trailing_commas: TrailingCommas, pub array_pattern_trailing_commas: TrailingCommas, pub enum_declaration_trailing_commas: TrailingCommas, pub export_declaration_trailing_commas: TrailingCommas, pub import_declaration_trailing_commas: TrailingCommas, pub object_pattern_trailing_commas: TrailingCommas, pub object_expression_trailing_commas: TrailingCommas, pub tuple_type_trailing_commas: TrailingCommas, pub type_literal_trailing_commas: TrailingCommas, pub type_parameters_trailing_commas: TrailingCommas, pub if_statement_use_braces: UseBraces, pub for_statement_use_braces: UseBraces, pub for_of_statement_use_braces: UseBraces, pub for_in_statement_use_braces: UseBraces, pub while_statement_use_braces: UseBraces, pub array_expression_prefer_single_line: bool, pub array_pattern_prefer_single_line: bool, pub arguments_prefer_single_line: bool, pub binary_expression_prefer_single_line: bool, pub computed_prefer_single_line: bool, pub conditional_expression_prefer_single_line: bool, pub conditional_type_prefer_single_line: bool, pub decorators_prefer_single_line: bool, pub export_declaration_prefer_single_line: bool, pub for_statement_prefer_single_line: bool, pub import_declaration_prefer_single_line: bool, pub jsx_attributes_prefer_single_line: bool, pub jsx_element_prefer_single_line: bool, pub mapped_type_prefer_single_line: bool, pub member_expression_prefer_single_line: bool, pub object_expression_prefer_single_line: bool, pub object_pattern_prefer_single_line: bool, pub parameters_prefer_single_line: bool, pub parentheses_prefer_single_line: bool, pub tuple_type_prefer_single_line: bool, pub type_literal_prefer_single_line: bool, pub type_parameters_prefer_single_line: bool, pub union_and_intersection_type_prefer_single_line: bool, pub variable_statement_prefer_single_line: bool, pub import_declaration_force_single_line: bool, pub export_declaration_force_single_line: bool, pub export_declaration_force_multi_line: bool, pub import_declaration_force_multi_line: bool, pub binary_expression_space_surrounding_bitwise_and_arithmetic_operator: bool, pub comment_line_force_space_after_slashes: bool, pub construct_signature_space_after_new_keyword: bool, pub constructor_space_before_parentheses: bool, pub constructor_type_space_after_new_keyword: bool, pub do_while_statement_space_after_while_keyword: bool, pub export_declaration_space_surrounding_named_exports: bool, pub for_statement_space_after_for_keyword: bool, pub for_statement_space_after_semi_colons: bool, pub for_in_statement_space_after_for_keyword: bool, pub for_of_statement_space_after_for_keyword: bool, pub function_declaration_space_before_parentheses: bool, pub function_expression_space_before_parentheses: bool, pub function_expression_space_after_function_keyword: bool, pub get_accessor_space_before_parentheses: bool, pub if_statement_space_after_if_keyword: bool, pub import_declaration_space_surrounding_named_imports: bool, pub jsx_expression_container_space_surrounding_expression: bool, pub jsx_self_closing_element_space_before_slash: bool, pub method_space_before_parentheses: bool, pub object_expression_space_surrounding_properties: bool, pub object_pattern_space_surrounding_properties: bool, pub set_accessor_space_before_parentheses: bool, pub space_surrounding_properties: bool, pub tagged_template_space_before_literal: bool, pub type_annotation_space_before_colon: bool, pub type_assertion_space_before_expression: bool, pub type_literal_space_surrounding_properties: bool, pub while_statement_space_after_while_keyword: bool, pub arguments_space_around: bool, pub array_expression_space_around: bool, pub array_pattern_space_around: bool, pub catch_clause_space_around: bool, pub do_while_statement_space_around: bool, pub for_in_statement_space_around: bool, pub for_of_statement_space_around: bool, pub for_statement_space_around: bool, pub if_statement_space_around: bool, pub parameters_space_around: bool, pub paren_expression_space_around: bool, pub switch_statement_space_around: bool, pub tuple_type_space_around: bool, pub while_statement_space_around: bool,
}

Fields§

§indent_width: u8§line_width: u32§use_tabs: bool§new_line_kind: NewLineKind§quote_style: QuoteStyle§quote_props: QuoteProps§semi_colons: SemiColons§arrow_function_use_parentheses: UseParentheses§binary_expression_line_per_expression: bool§conditional_expression_line_per_expression: bool§jsx_quote_style: JsxQuoteStyle§jsx_multi_line_parens: JsxMultiLineParens§jsx_force_new_lines_surrounding_content: bool§jsx_opening_element_bracket_position: SameOrNextLinePosition§jsx_self_closing_element_bracket_position: SameOrNextLinePosition§member_expression_line_per_expression: bool§type_literal_separator_kind_single_line: SemiColonOrComma§type_literal_separator_kind_multi_line: SemiColonOrComma§module_sort_import_declarations: SortOrder§module_sort_export_declarations: SortOrder§import_declaration_sort_named_imports: SortOrder§export_declaration_sort_named_exports: SortOrder§ignore_node_comment_text: String§ignore_file_comment_text: String§arrow_function_brace_position: BracePosition§class_declaration_brace_position: BracePosition§class_expression_brace_position: BracePosition§constructor_brace_position: BracePosition§do_while_statement_brace_position: BracePosition§enum_declaration_brace_position: BracePosition§get_accessor_brace_position: BracePosition§if_statement_brace_position: BracePosition§interface_declaration_brace_position: BracePosition§for_statement_brace_position: BracePosition§for_in_statement_brace_position: BracePosition§for_of_statement_brace_position: BracePosition§function_declaration_brace_position: BracePosition§function_expression_brace_position: BracePosition§method_brace_position: BracePosition§module_declaration_brace_position: BracePosition§set_accessor_brace_position: BracePosition§static_block_brace_position: BracePosition§switch_case_brace_position: BracePosition§switch_statement_brace_position: BracePosition§try_statement_brace_position: BracePosition§while_statement_brace_position: BracePosition§arguments_prefer_hanging: PreferHanging§array_expression_prefer_hanging: PreferHanging§array_pattern_prefer_hanging: bool§do_while_statement_prefer_hanging: bool§export_declaration_prefer_hanging: bool§extends_clause_prefer_hanging: bool§for_statement_prefer_hanging: bool§for_in_statement_prefer_hanging: bool§for_of_statement_prefer_hanging: bool§if_statement_prefer_hanging: bool§implements_clause_prefer_hanging: bool§import_declaration_prefer_hanging: bool§jsx_attributes_prefer_hanging: bool§object_expression_prefer_hanging: bool§object_pattern_prefer_hanging: bool§parameters_prefer_hanging: PreferHanging§sequence_expression_prefer_hanging: bool§switch_statement_prefer_hanging: bool§tuple_type_prefer_hanging: PreferHanging§type_literal_prefer_hanging: bool§type_parameters_prefer_hanging: PreferHanging§union_and_intersection_type_prefer_hanging: bool§variable_statement_prefer_hanging: bool§while_statement_prefer_hanging: bool§enum_declaration_member_spacing: MemberSpacing§if_statement_next_control_flow_position: NextControlFlowPosition§try_statement_next_control_flow_position: NextControlFlowPosition§do_while_statement_next_control_flow_position: NextControlFlowPosition§binary_expression_operator_position: OperatorPosition§conditional_expression_operator_position: OperatorPosition§conditional_type_operator_position: OperatorPosition§if_statement_single_body_position: SameOrNextLinePosition§for_statement_single_body_position: SameOrNextLinePosition§for_in_statement_single_body_position: SameOrNextLinePosition§for_of_statement_single_body_position: SameOrNextLinePosition§while_statement_single_body_position: SameOrNextLinePosition§arguments_trailing_commas: TrailingCommas§parameters_trailing_commas: TrailingCommas§array_expression_trailing_commas: TrailingCommas§array_pattern_trailing_commas: TrailingCommas§enum_declaration_trailing_commas: TrailingCommas§export_declaration_trailing_commas: TrailingCommas§import_declaration_trailing_commas: TrailingCommas§object_pattern_trailing_commas: TrailingCommas§object_expression_trailing_commas: TrailingCommas§tuple_type_trailing_commas: TrailingCommas§type_literal_trailing_commas: TrailingCommas§type_parameters_trailing_commas: TrailingCommas§if_statement_use_braces: UseBraces§for_statement_use_braces: UseBraces§for_of_statement_use_braces: UseBraces§for_in_statement_use_braces: UseBraces§while_statement_use_braces: UseBraces§array_expression_prefer_single_line: bool§array_pattern_prefer_single_line: bool§arguments_prefer_single_line: bool§binary_expression_prefer_single_line: bool§computed_prefer_single_line: bool§conditional_expression_prefer_single_line: bool§conditional_type_prefer_single_line: bool§decorators_prefer_single_line: bool§export_declaration_prefer_single_line: bool§for_statement_prefer_single_line: bool§import_declaration_prefer_single_line: bool§jsx_attributes_prefer_single_line: bool§jsx_element_prefer_single_line: bool§mapped_type_prefer_single_line: bool§member_expression_prefer_single_line: bool§object_expression_prefer_single_line: bool§object_pattern_prefer_single_line: bool§parameters_prefer_single_line: bool§parentheses_prefer_single_line: bool§tuple_type_prefer_single_line: bool§type_literal_prefer_single_line: bool§type_parameters_prefer_single_line: bool§union_and_intersection_type_prefer_single_line: bool§variable_statement_prefer_single_line: bool§import_declaration_force_single_line: bool§export_declaration_force_single_line: bool§export_declaration_force_multi_line: bool§import_declaration_force_multi_line: bool§binary_expression_space_surrounding_bitwise_and_arithmetic_operator: bool§comment_line_force_space_after_slashes: bool§construct_signature_space_after_new_keyword: bool§constructor_space_before_parentheses: bool§constructor_type_space_after_new_keyword: bool§do_while_statement_space_after_while_keyword: bool§export_declaration_space_surrounding_named_exports: bool§for_statement_space_after_for_keyword: bool§for_statement_space_after_semi_colons: bool§for_in_statement_space_after_for_keyword: bool§for_of_statement_space_after_for_keyword: bool§function_declaration_space_before_parentheses: bool§function_expression_space_before_parentheses: bool§function_expression_space_after_function_keyword: bool§get_accessor_space_before_parentheses: bool§if_statement_space_after_if_keyword: bool§import_declaration_space_surrounding_named_imports: bool§jsx_expression_container_space_surrounding_expression: bool§jsx_self_closing_element_space_before_slash: bool§method_space_before_parentheses: bool§object_expression_space_surrounding_properties: bool§object_pattern_space_surrounding_properties: bool§set_accessor_space_before_parentheses: bool§space_surrounding_properties: bool§tagged_template_space_before_literal: bool§type_annotation_space_before_colon: bool§type_assertion_space_before_expression: bool§type_literal_space_surrounding_properties: bool§while_statement_space_after_while_keyword: bool§arguments_space_around: bool§array_expression_space_around: bool§array_pattern_space_around: bool§catch_clause_space_around: bool§do_while_statement_space_around: bool§for_in_statement_space_around: bool§for_of_statement_space_around: bool§for_statement_space_around: bool§if_statement_space_around: bool§parameters_space_around: bool§paren_expression_space_around: bool§switch_statement_space_around: bool§tuple_type_space_around: bool§while_statement_space_around: bool

Trait Implementations§

source§

impl Clone for Configuration

source§

fn clone(&self) -> Configuration

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'de> Deserialize<'de> for Configuration

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<Configuration, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Configuration> for DprintCfg

source§

fn from(typescript: TypeScriptCfg) -> Self

Converts to this type from the input type.
source§

impl From<Configuration> for TypeScriptCfgWithSchema

source§

fn from(config: TypeScriptCfg) -> Self

Converts to this type from the input type.
source§

impl Serialize for Configuration

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pipe for T
where T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<X> Pipe for X

source§

fn pipe<Return, Function>(self, f: Function) -> Return
where Self: Sized, Function: FnOnce(Self) -> Return,

Apply f to self. Read more
source§

fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return
where Function: FnOnce(&'a Self) -> Return,

Apply f to &self. Read more
source§

fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return
where Function: FnOnce(&'a mut Self) -> Return,

Apply f to &mut self. Read more
source§

fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
where Self: AsRef<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,

Apply f to &self where f takes a single parameter of type Param and Self implements trait AsRef<Param>. Read more
source§

fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
where Self: AsMut<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait AsMut<Param>. Read more
source§

fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
where Self: Deref<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Target = Param>. Read more
source§

fn pipe_deref_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Return
where Self: DerefMut<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait [DerefMut<Target = Param>]. Read more
source§

fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
where Self: Borrow<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,

Apply f to &self where f takes a single parameter of type Param and Self implements trait Borrow<Param>. Read more
source§

fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Return
where Self: BorrowMut<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait BorrowMut<Param>. Read more
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Send for T
where T: ?Sized,

§

impl<T> Sync for T
where T: ?Sized,