pub enum Applicability {
MachineApplicable,
MaybeIncorrect,
HasPlaceholders,
Unspecified,
}
Indicates the confidence in the correctness of a suggestion.
All suggestions are marked with an Applicability
. Tools use the applicability of a suggestion
to determine whether it should be automatically applied or if the user should be consulted
before applying the suggestion.
The suggestion is definitely what the user intended. This suggestion should be
automatically applied.
The suggestion may be what the user intended, but it is uncertain. The suggestion should
result in valid Rust code if it is applied.
The suggestion contains placeholders like (...)
or { /* fields */ }
. The suggestion
cannot be applied automatically because it will not result in valid Rust code. The user
will need to fill in the placeholders.
The applicability of the suggestion is unknown.
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. Read more
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S
is the encoder/decoder state type, T
is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more