Skip to content

rs_rich.ext.diagnostic

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rs_rich.ext.diagnostic: compiler-style diagnostics (rich_ext::diagnostic).

No Rich counterpart: this is the port's own rs-rich-ext crate.

Diagnostic

causes property

causes: Any

code property writable

code: Any

code_url property writable

code_url: Any

help property

help: Any

hyperlinker property writable

hyperlinker: Any

labels property

labels: Any

level property writable

level: Any

location property writable

location: Any

message property

message: Any

notes property

notes: Any

overflow property writable

overflow: Any

suggestions property

suggestions: Any

trace property writable

trace: Any

view property writable

view: Any

add_cause

add_cause(message: Any) -> Any

add_help

add_help(message: Any) -> Any

add_label

add_label(message: Any) -> Any

add_metadata

add_metadata(key: Any, value: Any) -> Any

add_note

add_note(message: Any) -> Any

add_snippet

add_snippet(snippet: Any) -> Any

add_suggestion

add_suggestion(suggestion: Any) -> Any

error classmethod

error(message: Any, **kwargs: Any) -> Any

from_exception classmethod

from_exception(exception: Any, *, max_depth: Any = ..., level: Any = ..., trace: Any = ..., view: Any = ...) -> Any

warning classmethod

warning(message: Any, **kwargs: Any) -> Any

Location

column property

column: Any

line property

line: Any

path property

path: Any

SourceSnippet

location property

location: Any

name property

name: Any

primary

primary(start: Any, end: Any, label: Any = ...) -> Any

secondary

secondary(start: Any, end: Any, label: Any = ...) -> Any

Suggestion

message property

message: Any

replace classmethod

replace(message: Any, source: Any, start: Any, end: Any, replacement: Any) -> Any

DiagnosticSpanError

Bases: ExtError