Struct swc_plugin::utils::swc_ecma_ast::ListFormat
[−]pub struct ListFormat { /* private fields */ }
Implementations
impl ListFormat
impl ListFormat
pub const None: ListFormat = Self{bits: 0,}
pub const fn empty() -> ListFormat
pub const fn empty() -> ListFormat
Returns an empty set of flags.
pub const fn all() -> ListFormat
pub const fn all() -> ListFormat
Returns the set containing all flags.
pub const fn from_bits(bits: u32) -> Option<ListFormat>
pub const fn from_bits(bits: u32) -> Option<ListFormat>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> ListFormat
pub const fn from_bits_truncate(bits: u32) -> ListFormat
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> ListFormat
pub const unsafe fn from_bits_unchecked(bits: u32) -> ListFormat
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.
pub const fn intersects(&self, other: ListFormat) -> bool
pub const fn intersects(&self, other: ListFormat) -> bool
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: ListFormat) -> bool
pub const fn contains(&self, other: ListFormat) -> bool
Returns true
if all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ListFormat)
pub fn insert(&mut self, other: ListFormat)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ListFormat)
pub fn remove(&mut self, other: ListFormat)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ListFormat)
pub fn toggle(&mut self, other: ListFormat)
Toggles the specified flags in-place.
pub fn set(&mut self, other: ListFormat, value: bool)
pub fn set(&mut self, other: ListFormat, value: bool)
Inserts or removes the specified flags depending on the passed value.
pub const fn intersection(self, other: ListFormat) -> ListFormat
pub const fn intersection(self, other: ListFormat) -> ListFormat
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
.
pub const fn union(self, other: ListFormat) -> ListFormat
pub const fn union(self, other: ListFormat) -> ListFormat
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
.
pub const fn difference(self, other: ListFormat) -> ListFormat
pub const fn difference(self, other: ListFormat) -> ListFormat
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
.
pub const fn symmetric_difference(self, other: ListFormat) -> ListFormat
pub const fn symmetric_difference(self, other: ListFormat) -> ListFormat
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
.
pub const fn complement(self) -> ListFormat
pub const fn complement(self) -> ListFormat
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
.
impl ListFormat
impl ListFormat
pub const SingleLine: ListFormat = ListFormat{bits: 0,}
pub const SingleLine: ListFormat = ListFormat{bits: 0,}
Prints the list on a single line (default).
pub const MultiLine: ListFormat = ListFormat{bits: 1 << 0,}
pub const MultiLine: ListFormat = ListFormat{bits: 1 << 0,}
Prints the list on multiple lines.
pub const PreserveLines: ListFormat = ListFormat{bits: 1 << 1,}
pub const PreserveLines: ListFormat = ListFormat{bits: 1 << 1,}
Prints the list using line preservation if possible.
pub const LinesMask: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::MultiLine.bits | Self::PreserveLines.bits),}
impl ListFormat
impl ListFormat
pub const NotDelimited: ListFormat = ListFormat{bits: 0,}
pub const NotDelimited: ListFormat = ListFormat{bits: 0,}
There is no delimiter between list items (default).
pub const BarDelimited: ListFormat = ListFormat{bits: 1 << 2,}
pub const BarDelimited: ListFormat = ListFormat{bits: 1 << 2,}
Each list item is space-and-bar (“ |“) delimited.
pub const AmpersandDelimited: ListFormat = ListFormat{bits: 1 << 3,}
pub const AmpersandDelimited: ListFormat = ListFormat{bits: 1 << 3,}
Each list item is space-and-ampersand (“ &“) delimited.
pub const CommaDelimited: ListFormat = ListFormat{bits: 1 << 4,}
pub const CommaDelimited: ListFormat = ListFormat{bits: 1 << 4,}
Each list item is comma (“,”) delimited.
pub const DelimitersMask: ListFormat = ListFormat{bits: Self::BarDelimited.bits | (Self::AmpersandDelimited.bits | Self::CommaDelimited.bits),}
impl ListFormat
impl ListFormat
pub const AllowTrailingComma: ListFormat = ListFormat{bits: 1 << 5,}
pub const AllowTrailingComma: ListFormat = ListFormat{bits: 1 << 5,}
Write a trailing comma (“,”) if present.
impl ListFormat
impl ListFormat
pub const Indented: ListFormat = ListFormat{bits: 1 << 6,}
pub const Indented: ListFormat = ListFormat{bits: 1 << 6,}
The list should be indented.
pub const SpaceBetweenBraces: ListFormat = ListFormat{bits: 1 << 7,}
pub const SpaceBetweenBraces: ListFormat = ListFormat{bits: 1 << 7,}
Inserts a space after the opening brace and before the closing brace.
pub const SpaceBetweenSiblings: ListFormat = ListFormat{bits: 1 << 8,}
pub const SpaceBetweenSiblings: ListFormat = ListFormat{bits: 1 << 8,}
Inserts a space between each sibling node.
impl ListFormat
impl ListFormat
pub const Braces: ListFormat = ListFormat{bits: 1 << 9,}
pub const Braces: ListFormat = ListFormat{bits: 1 << 9,}
The list is surrounded by “{” and “}”.
pub const Parenthesis: ListFormat = ListFormat{bits: 1 << 10,}
pub const Parenthesis: ListFormat = ListFormat{bits: 1 << 10,}
The list is surrounded by “(” and “)”.
pub const AngleBrackets: ListFormat = ListFormat{bits: 1 << 11,}
pub const AngleBrackets: ListFormat = ListFormat{bits: 1 << 11,}
The list is surrounded by “<” and “>”.
pub const SquareBrackets: ListFormat = ListFormat{bits: 1 << 12,}
pub const SquareBrackets: ListFormat = ListFormat{bits: 1 << 12,}
The list is surrounded by “[” and “]”.
pub const BracketsMask: ListFormat = ListFormat{bits: Self::Braces.bits | (Self::Parenthesis.bits | (Self::AngleBrackets.bits | Self::SquareBrackets.bits)),}
impl ListFormat
impl ListFormat
pub const OptionalIfUndefined: ListFormat = ListFormat{bits: 1 << 13,}
pub const OptionalIfUndefined: ListFormat = ListFormat{bits: 1 << 13,}
Do not emit brackets if the list is undefined.
pub const OptionalIfEmpty: ListFormat = ListFormat{bits: 1 << 14,}
pub const OptionalIfEmpty: ListFormat = ListFormat{bits: 1 << 14,}
Do not emit brackets if the list is empty.
pub const Optional: ListFormat = ListFormat{bits: Self::OptionalIfUndefined.bits | Self::OptionalIfEmpty.bits,}
impl ListFormat
impl ListFormat
pub const PreferNewLine: ListFormat = ListFormat{bits: 1 << 15,}
pub const PreferNewLine: ListFormat = ListFormat{bits: 1 << 15,}
Prefer adding a LineTerminator between synthesized nodes.
pub const NoTrailingNewLine: ListFormat = ListFormat{bits: 1 << 16,}
pub const NoTrailingNewLine: ListFormat = ListFormat{bits: 1 << 16,}
Do not emit a trailing NewLine for a MultiLine list.
pub const NoInterveningComments: ListFormat = ListFormat{bits: 1 << 17,}
pub const NoInterveningComments: ListFormat = ListFormat{bits: 1 << 17,}
Do not emit comments between each node
pub const NoSpaceIfEmpty: ListFormat = ListFormat{bits: 1 << 18,}
pub const NoSpaceIfEmpty: ListFormat = ListFormat{bits: 1 << 18,}
If the literal is empty, do not add spaces between braces.
pub const SingleElement: ListFormat = ListFormat{bits: 1 << 19,}
pub const ForceTrailingComma: ListFormat = ListFormat{bits: 1 << 20,}
impl ListFormat
impl ListFormat
pub const CanSkipTrailingComma: ListFormat = ListFormat{bits: 1 << 21,}
impl ListFormat
impl ListFormat
pub const Modifiers: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::SpaceBetweenSiblings.bits | Self::NoInterveningComments.bits),}
pub const HeritageClauses: ListFormat = ListFormat{bits: Self::SingleLine.bits | Self::SpaceBetweenSiblings.bits,}
pub const SingleLineTypeLiteralMembers: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::SpaceBetweenBraces.bits | (Self::SpaceBetweenSiblings.bits | Self::Indented.bits)),}
pub const MultiLineTypeLiteralMembers: ListFormat = ListFormat{bits: Self::MultiLine.bits | Self::Indented.bits,}
pub const TupleTypeElements: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | Self::Indented.bits)),}
pub const UnionTypeConstituents: ListFormat = ListFormat{bits: Self::BarDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::SingleLine.bits),}
pub const IntersectionTypeConstituents: ListFormat = ListFormat{bits: Self::AmpersandDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::SingleLine.bits),}
pub const ObjectBindingPatternElements: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::AllowTrailingComma.bits | (Self::SpaceBetweenBraces.bits | (Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::NoSpaceIfEmpty.bits)))),}
pub const ArrayBindingPatternElements: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::AllowTrailingComma.bits | (Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::NoSpaceIfEmpty.bits))),}
pub const ObjectLiteralExpressionProperties: ListFormat = ListFormat{bits: Self::MultiLine.bits | (Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SpaceBetweenBraces.bits | (Self::Indented.bits | (Self::Braces.bits | Self::NoSpaceIfEmpty.bits))))),}
pub const ArrayLiteralExpressionElements: ListFormat = ListFormat{bits: Self::PreserveLines.bits | (Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::AllowTrailingComma.bits | (Self::Indented.bits | Self::SquareBrackets.bits)))),}
pub const CommaListElements: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::SingleLine.bits),}
pub const CallExpressionArguments: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | Self::Parenthesis.bits)),}
pub const NewExpressionArguments: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | (Self::Parenthesis.bits | Self::OptionalIfUndefined.bits))),}
pub const TemplateExpressionSpans: ListFormat = ListFormat{bits: Self::SingleLine.bits | Self::NoInterveningComments.bits,}
pub const SingleLineBlockStatements: ListFormat = ListFormat{bits: Self::SpaceBetweenBraces.bits | (Self::SpaceBetweenSiblings.bits | Self::SingleLine.bits),}
pub const MultiLineBlockStatements: ListFormat = ListFormat{bits: Self::Indented.bits | Self::MultiLine.bits,}
pub const VariableDeclarationList: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::SingleLine.bits),}
pub const SingleLineFunctionBodyStatements: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::SpaceBetweenSiblings.bits | Self::SpaceBetweenBraces.bits),}
pub const MultiLineFunctionBodyStatements: ListFormat = ListFormat{bits: Self::MultiLine.bits,}
pub const ClassHeritageClauses: ListFormat = ListFormat{bits: Self::SingleLine.bits | Self::SpaceBetweenSiblings.bits,}
pub const ClassMembers: ListFormat = ListFormat{bits: Self::Indented.bits | Self::MultiLine.bits,}
pub const InterfaceMembers: ListFormat = ListFormat{bits: Self::Indented.bits | Self::MultiLine.bits,}
pub const EnumMembers: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::Indented.bits | Self::MultiLine.bits),}
pub const CaseBlockClauses: ListFormat = ListFormat{bits: Self::Indented.bits | Self::MultiLine.bits,}
pub const NamedImportsOrExportsElements: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::AllowTrailingComma.bits | (Self::SingleLine.bits | Self::SpaceBetweenBraces.bits))),}
pub const JsxElementOrFragmentChildren: ListFormat = ListFormat{bits: Self::SingleLine.bits | Self::NoInterveningComments.bits,}
pub const JsxElementAttributes: ListFormat = ListFormat{bits: Self::SingleLine.bits | (Self::SpaceBetweenSiblings.bits | Self::NoInterveningComments.bits),}
pub const CaseOrDefaultClauseStatements: ListFormat = ListFormat{bits: Self::Indented.bits | (Self::MultiLine.bits | (Self::NoTrailingNewLine.bits | Self::OptionalIfEmpty.bits)),}
pub const HeritageClauseTypes: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | Self::SingleLine.bits),}
pub const SourceFileStatements: ListFormat = ListFormat{bits: Self::MultiLine.bits | Self::NoTrailingNewLine.bits,}
pub const Decorators: ListFormat = ListFormat{bits: Self::MultiLine.bits | Self::Optional.bits,}
pub const TypeArguments: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | (Self::AngleBrackets.bits | Self::Optional.bits))),}
pub const TypeParameters: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | (Self::AngleBrackets.bits | Self::Optional.bits))),}
pub const Parameters: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | Self::Parenthesis.bits)),}
pub const IndexSignatureParameters: ListFormat = ListFormat{bits: Self::CommaDelimited.bits | (Self::SpaceBetweenSiblings.bits | (Self::SingleLine.bits | (Self::Indented.bits | Self::SquareBrackets.bits))),}
impl ListFormat
impl ListFormat
pub fn opening_bracket(self) -> &'static str
pub fn closing_bracket(self) -> &'static str
Trait Implementations
impl Binary for ListFormat
impl Binary for ListFormat
impl BitAnd<ListFormat> for ListFormat
impl BitAnd<ListFormat> for ListFormat
fn bitand(self, other: ListFormat) -> ListFormat
fn bitand(self, other: ListFormat) -> ListFormat
Returns the intersection between the two sets of flags.
type Output = ListFormat
type Output = ListFormat
The resulting type after applying the &
operator.
impl BitAndAssign<ListFormat> for ListFormat
impl BitAndAssign<ListFormat> for ListFormat
fn bitand_assign(&mut self, other: ListFormat)
fn bitand_assign(&mut self, other: ListFormat)
Disables all flags disabled in the set.
impl BitOr<ListFormat> for ListFormat
impl BitOr<ListFormat> for ListFormat
fn bitor(self, other: ListFormat) -> ListFormat
fn bitor(self, other: ListFormat) -> ListFormat
Returns the union of the two sets of flags.
type Output = ListFormat
type Output = ListFormat
The resulting type after applying the |
operator.
impl BitOrAssign<ListFormat> for ListFormat
impl BitOrAssign<ListFormat> for ListFormat
fn bitor_assign(&mut self, other: ListFormat)
fn bitor_assign(&mut self, other: ListFormat)
Adds the set of flags.
impl BitXor<ListFormat> for ListFormat
impl BitXor<ListFormat> for ListFormat
fn bitxor(self, other: ListFormat) -> ListFormat
fn bitxor(self, other: ListFormat) -> ListFormat
Returns the left flags, but with all the right flags toggled.
type Output = ListFormat
type Output = ListFormat
The resulting type after applying the ^
operator.
impl BitXorAssign<ListFormat> for ListFormat
impl BitXorAssign<ListFormat> for ListFormat
fn bitxor_assign(&mut self, other: ListFormat)
fn bitxor_assign(&mut self, other: ListFormat)
Toggles the set of flags.
impl Clone for ListFormat
impl Clone for ListFormat
fn clone(&self) -> ListFormat
fn clone(&self) -> ListFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ListFormat
impl Debug for ListFormat
impl Extend<ListFormat> for ListFormat
impl Extend<ListFormat> for ListFormat
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ListFormat>,
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ListFormat>,
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<ListFormat> for ListFormat
impl FromIterator<ListFormat> for ListFormat
fn from_iter<T>(iterator: T) -> ListFormat where
T: IntoIterator<Item = ListFormat>,
fn from_iter<T>(iterator: T) -> ListFormat where
T: IntoIterator<Item = ListFormat>,
Creates a value from an iterator. Read more
impl Hash for ListFormat
impl Hash for ListFormat
impl LowerHex for ListFormat
impl LowerHex for ListFormat
impl Not for ListFormat
impl Not for ListFormat
fn not(self) -> ListFormat
fn not(self) -> ListFormat
Returns the complement of this set of flags.
type Output = ListFormat
type Output = ListFormat
The resulting type after applying the !
operator.
impl Octal for ListFormat
impl Octal for ListFormat
impl Ord for ListFormat
impl Ord for ListFormat
impl PartialEq<ListFormat> for ListFormat
impl PartialEq<ListFormat> for ListFormat
fn eq(&self, other: &ListFormat) -> bool
fn eq(&self, other: &ListFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ListFormat) -> bool
fn ne(&self, other: &ListFormat) -> bool
This method tests for !=
.
impl PartialOrd<ListFormat> for ListFormat
impl PartialOrd<ListFormat> for ListFormat
fn partial_cmp(&self, other: &ListFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &ListFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Sub<ListFormat> for ListFormat
impl Sub<ListFormat> for ListFormat
fn sub(self, other: ListFormat) -> ListFormat
fn sub(self, other: ListFormat) -> ListFormat
Returns the set difference of the two sets of flags.
type Output = ListFormat
type Output = ListFormat
The resulting type after applying the -
operator.
impl SubAssign<ListFormat> for ListFormat
impl SubAssign<ListFormat> for ListFormat
fn sub_assign(&mut self, other: ListFormat)
fn sub_assign(&mut self, other: ListFormat)
Disables all flags enabled in the set.
impl UpperHex for ListFormat
impl UpperHex for ListFormat
impl Copy for ListFormat
impl Eq for ListFormat
impl StructuralEq for ListFormat
impl StructuralPartialEq for ListFormat
Auto Trait Implementations
impl RefUnwindSafe for ListFormat
impl Send for ListFormat
impl Sync for ListFormat
impl Unpin for ListFormat
impl UnwindSafe for ListFormat
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more