pub enum FmtSingleOrIndent {
Single,
Indent,
}Expand description
Single or indent formatting
Variants§
Implementations§
Source§impl FmtSingleOrIndent
impl FmtSingleOrIndent
pub const fn prefix_ws(self) -> WhitespaceConfig
Trait Implementations§
Source§impl Clone for FmtSingleOrIndent
impl Clone for FmtSingleOrIndent
Source§fn clone(&self) -> FmtSingleOrIndent
fn clone(&self) -> FmtSingleOrIndent
Returns a duplicate 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 Debug for FmtSingleOrIndent
impl Debug for FmtSingleOrIndent
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for CallParams
impl Format<WhitespaceConfig, FmtSingleOrIndent> for CallParams
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for FunctionParameters
impl Format<WhitespaceConfig, FmtSingleOrIndent> for FunctionParameters
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for FunctionParametersFull
impl Format<WhitespaceConfig, FmtSingleOrIndent> for FunctionParametersFull
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternElements
impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternElements
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternElementsFields
impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternElementsFields
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternElementsFieldsEtCetera
impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternElementsFieldsEtCetera
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
Source§impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternFields
impl Format<WhitespaceConfig, FmtSingleOrIndent> for StructPatternFields
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: FmtSingleOrIndent,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: FmtSingleOrIndent, ) -> FormatOutput
Formats this type.
impl Copy for FmtSingleOrIndent
Auto Trait Implementations§
impl Freeze for FmtSingleOrIndent
impl RefUnwindSafe for FmtSingleOrIndent
impl Send for FmtSingleOrIndent
impl Sync for FmtSingleOrIndent
impl Unpin for FmtSingleOrIndent
impl UnsafeUnpin for FmtSingleOrIndent
impl UnwindSafe for FmtSingleOrIndent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
fn from_recursive_root(root: R, _parser: &mut Parser) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more