pub struct ListFormat { /* private fields */ }
Available on crate feature visit only.
Expand description

Represents the formatting rule for a list of nodes.

Implementations

Available on crate feature ast only.

Default value.

Available on crate feature ast only.

Returns an empty set of flags.

Available on crate feature ast only.

Returns the set containing all flags.

Available on crate feature ast only.

Returns the raw value of the flags currently stored.

Available on crate feature ast only.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Available on crate feature ast only.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Available on crate feature ast only.

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

Safety

The caller of the bitflags! macro can chose to allow or disallow extra bits for their bitflags type.

The caller of from_bits_unchecked() has to ensure that all bits correspond to a defined flag or that extra bits are valid for this bitflags type.

Available on crate feature ast only.

Returns true if no flags are currently stored.

Available on crate feature ast only.

Returns true if all flags are currently set.

Available on crate feature ast only.

Returns true if there are flags common to both self and other.

Available on crate feature ast only.

Returns true if all of the flags in other are contained within self.

Available on crate feature ast only.

Inserts the specified flags in-place.

Available on crate feature ast only.

Removes the specified flags in-place.

Available on crate feature ast only.

Toggles the specified flags in-place.

Available on crate feature ast only.

Inserts or removes the specified flags depending on the passed value.

Available on crate feature ast only.

Returns the intersection between the flags in self and other.

Specifically, the returned set contains only the flags which are present in both self and other.

This is equivalent to using the & operator (e.g. ops::BitAnd), as in flags & other.

Available on crate feature ast only.

Returns the union of between the flags in self and other.

Specifically, the returned set contains all flags which are present in either self or other, including any which are present in both (see Self::symmetric_difference if that is undesirable).

This is equivalent to using the | operator (e.g. ops::BitOr), as in flags | other.

Available on crate feature ast only.

Returns the difference between the flags in self and other.

Specifically, the returned set contains all flags present in self, except for the ones present in other.

It is also conceptually equivalent to the “bit-clear” operation: flags & !other (and this syntax is also supported).

This is equivalent to using the - operator (e.g. ops::Sub), as in flags - other.

Available on crate feature ast only.

Returns the symmetric difference between the flags in self and other.

Specifically, the returned set contains the flags present which are present in self or other, but that are not present in both. Equivalently, it contains the flags present in exactly one of the sets self and other.

This is equivalent to using the ^ operator (e.g. ops::BitXor), as in flags ^ other.

Available on crate feature ast only.

Returns the complement of this set of flags.

Specifically, the returned set contains all the flags which are not set in self, but which are allowed for this type.

Alternatively, it can be thought of as the set difference between Self::all() and self (e.g. Self::all() - self)

This is equivalent to using the ! operator (e.g. ops::Not), as in !flags.

Available on crate feature ast only.

Prints the list on a single line (default).

Available on crate feature ast only.

Prints the list on multiple lines.

Available on crate feature ast only.

Prints the list using line preservation if possible.

Available on crate feature ast only.
Available on crate feature ast only.

There is no delimiter between list items (default).

Available on crate feature ast only.

Each list item is space-and-bar (“ |“) delimited.

Available on crate feature ast only.

Each list item is space-and-ampersand (“ &“) delimited.

Available on crate feature ast only.

Each list item is comma (“,”) delimited.

Available on crate feature ast only.
Available on crate feature ast only.

Write a trailing comma (“,”) if present.

Available on crate feature ast only.

The list should be indented.

Available on crate feature ast only.

Inserts a space after the opening brace and before the closing brace.

Available on crate feature ast only.

Inserts a space between each sibling node.

Available on crate feature ast only.

The list is surrounded by “{” and “}”.

Available on crate feature ast only.

The list is surrounded by “(” and “)”.

Available on crate feature ast only.

The list is surrounded by “<” and “>”.

Available on crate feature ast only.

The list is surrounded by “[” and “]”.

Available on crate feature ast only.
Available on crate feature ast only.

Do not emit brackets if the list is undefined.

Available on crate feature ast only.

Do not emit brackets if the list is empty.

Available on crate feature ast only.
Available on crate feature ast only.

Prefer adding a LineTerminator between synthesized nodes.

Available on crate feature ast only.

Do not emit a trailing NewLine for a MultiLine list.

Available on crate feature ast only.

Do not emit comments between each node

Available on crate feature ast only.

If the literal is empty, do not add spaces between braces.

Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.
Available on crate feature ast only.

Trait Implementations

Formats the value using the given formatter.

Returns the intersection between the two sets of flags.

The resulting type after applying the & operator.

Disables all flags disabled in the set.

Returns the union of the two sets of flags.

The resulting type after applying the | operator.

Adds the set of flags.

Returns the left flags, but with all the right flags toggled.

The resulting type after applying the ^ operator.

Toggles the set of flags.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Extends a collection with the contents of an iterator. Read more

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

Extends a collection with exactly one element.

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

Reserves capacity in a collection for the given number of additional elements. Read more

Creates a value from an iterator. Read more

Feeds this value into the given Hasher. Read more

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

Formats the value using the given formatter.

Returns the complement of this set of flags.

The resulting type after applying the ! operator.

Formats the value using the given formatter.

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Returns the set difference of the two sets of flags.

The resulting type after applying the - operator.

Disables all flags enabled in the set.

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Available on crate feature quote only.

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

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

Calls U::from(self).

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

Set the foreground color generically Read more

Set the background color generically. Read more

Change the foreground color to black

Change the background color to black

Change the foreground color to red

Change the background color to red

Change the foreground color to green

Change the background color to green

Change the foreground color to yellow

Change the background color to yellow

Change the foreground color to blue

Change the background color to blue

Change the foreground color to magenta

Change the background color to magenta

Change the foreground color to purple

Change the background color to purple

Change the foreground color to cyan

Change the background color to cyan

Change the foreground color to white

Change the background color to white

Change the foreground color to the terminal default

Change the background color to the terminal default

Change the foreground color to bright black

Change the background color to bright black

Change the foreground color to bright red

Change the background color to bright red

Change the foreground color to bright green

Change the background color to bright green

Change the foreground color to bright yellow

Change the background color to bright yellow

Change the foreground color to bright blue

Change the background color to bright blue

Change the foreground color to bright magenta

Change the background color to bright magenta

Change the foreground color to bright purple

Change the background color to bright purple

Change the foreground color to bright cyan

Change the background color to bright cyan

Change the foreground color to bright white

Change the background color to bright white

Make the text bold

Make the text dim

Make the text italicized

Make the text italicized

Make the text blink

Make the text blink (but fast!)

Swap the foreground and background colors

Hide the text

Cross out the text

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more

Set the foreground color to a specific RGB value.

Set the background color to a specific RGB value.

Sets the foreground color to an RGB value.

Sets the background color to an RGB value.

Apply a runtime-determined style

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type for metadata in pointers and references to Self.

Should always be Self

The resulting type after obtaining ownership.

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

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.

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

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