#[repr(C)]
pub enum PrintingPolicyFlag {
Show 25 variants SuppressSpecifiers, SuppressTagKeyword, IncludeTagDefinition, SuppressScope, SuppressUnwrittenScope, SuppressInitializers, PrintConstantArraySizeAsWritten, PrintAnonymousTagLocations, SuppressStrongLifetime, SuppressLifetimeQualifiers, SuppressTemplateArgsInCXXConstructors, UseBool, UseRestrict, UseAlignof, UseUnderscoreAlignof, UseVoidForZeroParams, UseTerseOutput, PolishForDeclaration, UseHalf, UseMsWchar, IncludeNewlines, UseMsvcFormatting, PrintConstantsAsWritten, SuppressImplicitBase, PrintFullyQualifiedName,
}
Expand description

Flags for the printing policy.

Variants

SuppressSpecifiers

Whether to suppress printing specifiers for a given type or declaration.

SuppressTagKeyword

Whether to suppress printing the tag keyword.

IncludeTagDefinition

Whether to include the body of a tag definition.

SuppressScope

Whether to suppress printing of scope specifiers.

SuppressUnwrittenScope

Whether to suppress printing the parts of scope specifiers that don’t need to be written.

SuppressInitializers

Whether to suppress printing of variable initializers.

PrintConstantArraySizeAsWritten

Whether to print the size of constant array expressions as written.

PrintAnonymousTagLocations

Whether to print the location of anonymous tags.

SuppressStrongLifetime

Whether to suppress printing the __strong lifetime qualifier in ARC.

SuppressLifetimeQualifiers

Whether to suppress printing lifetime qualifiers in ARC.

SuppressTemplateArgsInCXXConstructors

Whether to suppress printing template arguments in names of C++ constructors.

UseBool

Whether to print ‘bool’ rather than ‘_Bool’.

UseRestrict

Whether to print ‘restrict’ rather than ‘__restrict’

UseAlignof

Whether to print ‘alignof’ rather than ‘__alignof’

UseUnderscoreAlignof

Whether to print ‘_Alignof’ rather than ‘__alignof’

UseVoidForZeroParams

Whether to print ‘(void)’ rather then ‘()’ for a function prototype with zero parameters.

UseTerseOutput

Whether to print terse output.

PolishForDeclaration

Whether to do certain refinements needed for producing a proper declaration tag.

UseHalf

Whether to print ‘half’ rather than ‘__fp16’

UseMsWchar

Whether to print the built-in wchar_t type as ‘__wchar_t’

IncludeNewlines

Whether to include newlines after statements.

UseMsvcFormatting

Whether to use whitespace and punctuation like MSVC does.

PrintConstantsAsWritten

Whether to print constant expressions as written.

SuppressImplicitBase

Whether to suppress printing the implicit ‘self’ or ‘this’ expressions.

PrintFullyQualifiedName

Whether to print the fully qualified name of function declarations.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.