Enum TypeCheckingFormat Copy item path Source pub enum TypeCheckingFormat {
Full,
Concise,
Azure,
Json,
JsonLines,
Rdjson,
Pylint,
Gitlab,
Github,
}Expand description How type-check diagnostics are rendered into text.
Mirrors ty’s DiagnosticFormat. Rendering happens wherever the type checker
runs (inside the worker for pool sessions), because ty’s structured
diagnostics borrow the salsa database and cannot cross a process boundary —
so the format has to be chosen before the check, not after it.
Serialized into session dumps by variant name, so a rename needs
#[serde(alias)] to keep older dumps loading (see DUMP_VERSION in monty).
Human-readable diagnostics with a source snippet and carets.
One path:line:col: severity[rule] message line per diagnostic.
Azure Pipelines logging commands.
A JSON array of diagnostic objects.
One JSON diagnostic object per line.
Reviewdog diagnostic JSON.
Pylint-compatible output.
GitLab Code Quality report JSON.
GitHub Actions workflow commands.
Parses a format name, reporting the valid names on failure.
Bindings take the format as a string, so the error has to be good
enough to show a user who guessed wrong.
Comma-separated list of the accepted format names.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Deserialize this value from the given Serde deserializer.
Read more Formats the value using the given formatter.
Read more The associated error which can be returned from parsing.
Parses a string
s to return a value of this type.
Read more Serialize this value into the given Serde serializer.
Read more The type returned in the event of a conversion error.
Performs the conversion.
Names of the variants of this enum
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
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 Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
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.