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
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Configuration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
impl From<Configuration> for DprintCfg
source§fn from(typescript: TypeScriptCfg) -> Self
fn from(typescript: TypeScriptCfg) -> Self
Converts to this type from the input type.
source§impl From<Configuration> for TypeScriptCfgWithSchema
impl From<Configuration> for TypeScriptCfgWithSchema
source§fn from(config: TypeScriptCfg) -> Self
fn from(config: TypeScriptCfg) -> Self
Converts to this type from the input type.
source§impl Serialize for Configuration
impl Serialize for Configuration
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
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) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
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
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
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
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.source§impl<X> Pipe for X
impl<X> Pipe for X
source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moresource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moresource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moresource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
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 moresource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moresource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read moresource§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
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
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
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
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
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
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
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
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
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
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
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.