pub struct DiagnosticCode(/* private fields */);Implementations§
Source§impl DiagnosticCode
impl DiagnosticCode
pub const UNCLOSED_LIST: DiagnosticCode
pub const UNMATCHED_CLOSE: DiagnosticCode
pub const UNTERMINATED_STRING: DiagnosticCode
pub const UNKNOWN_ESCAPE: DiagnosticCode
pub const MALFORMED_NUMBER: DiagnosticCode
pub const RESERVED_CHARACTER: DiagnosticCode
pub const NUMBER_TOO_LARGE: DiagnosticCode
pub const LIST_TOO_DEEP: DiagnosticCode
pub const UNBOUND_NAME: DiagnosticCode
pub const AMBIGUOUS_NAME: DiagnosticCode
pub const DUPLICATE_DEFINITION: DiagnosticCode
pub const UNKNOWN_MODULE: DiagnosticCode
pub const MISSING_EXPORT: DiagnosticCode
pub const IMPORT_CYCLE: DiagnosticCode
pub const NOT_A_DEFINITION: DiagnosticCode
pub const MODULE_LEVEL_ONLY: DiagnosticCode
pub const EMPTY_CALL: DiagnosticCode
pub const MALFORMED_FORM: DiagnosticCode
pub const FORM_AS_VALUE: DiagnosticCode
pub const WRONG_NAMESPACE: DiagnosticCode
pub const BAD_TYPE_TEMPLATE: DiagnosticCode
pub const RECUR_OUTSIDE_TAIL: DiagnosticCode
pub const RECUR_ARGUMENT_COUNT: DiagnosticCode
pub const RECUR_OUTSIDE_FN: DiagnosticCode
pub const SECOND_TRAIT_PATH: DiagnosticCode
pub const MALFORMED_TEMPLATE: DiagnosticCode
pub const TYPE_PARAMETERS_ON_NAME: DiagnosticCode
pub const TRY_OUTSIDE_FN: DiagnosticCode
pub const TYPE_PARAMETER_PLACEHOLDER: DiagnosticCode
pub const TYPE_PLACEHOLDER_IN_RUST_TYPE: DiagnosticCode
pub const RUST_TYPE_CLAUSES_NEED_ONE_PARAMETER: DiagnosticCode
pub const BORROWED_TYPE_PLACEHOLDER: DiagnosticCode
pub const PLACEHOLDER_WITHOUT_PARAMETER: DiagnosticCode
pub const UNUSED_TYPE_PLACEHOLDER: DiagnosticCode
pub const LET_OUTSIDE_BODY: DiagnosticCode
pub const MALFORMED_TYPE: DiagnosticCode
pub const MACRO_OUTSIDE_DEF: DiagnosticCode
pub const MIXED_VARIANT_PAYLOAD: DiagnosticCode
pub const NOT_A_PATTERN: DiagnosticCode
pub const VARIANT_AS_VALUE: DiagnosticCode
pub const NOT_A_TYPE: DiagnosticCode
pub const NOT_A_NAME: DiagnosticCode
pub const SIGNATURE_TARGET: DiagnosticCode
pub const DERIVE_TARGET: DiagnosticCode
pub const DERIVE_TRAIT: DiagnosticCode
pub const MISSING_METHOD: DiagnosticCode
pub const EXTRA_METHOD: DiagnosticCode
pub const UNDECLARED_METHOD: DiagnosticCode
pub const GENERIC_IMPLEMENTOR: DiagnosticCode
pub const FIELD_KEYWORD_ARITY: DiagnosticCode
pub const KEYWORD_BINDER: DiagnosticCode
pub const IGNORED_BINDING_READ: DiagnosticCode
pub const RUST_CLAUSES_NEED_ONE_PARAMETER: DiagnosticCode
pub const CLAUSE_PASSES_ARGUMENTS_UNLIKE_TEMPLATE: DiagnosticCode
pub const MALFORMED_STRUCTURAL_CLAUSE: DiagnosticCode
pub const INPUT_SET_ASIDE: DiagnosticCode
pub const RESERVED_MODULE_NAME: DiagnosticCode
pub const LIBRARY_HIDES_LOCAL_MODULE: DiagnosticCode
pub const UNLISTED_LIBRARY: DiagnosticCode
pub const LOCAL_MODULE_BESIDE_LIBRARY: DiagnosticCode
pub const MODULE_OUTSIDE_CHECKOUT: DiagnosticCode
pub const INTERNAL_MODULE: DiagnosticCode
pub const TEST_MODULE_HIDES_SOURCE_MODULE: DiagnosticCode
pub const MACRO_FAILED: DiagnosticCode
pub const MACRO_RESULT_NOT_FORM: DiagnosticCode
pub const COMPILE_TIME_ERROR: DiagnosticCode
pub const MACRO_AS_VALUE: DiagnosticCode
pub const EXPANSION_TOO_DEEP: DiagnosticCode
pub const PROGRAM_ONLY: DiagnosticCode
pub const COMPILE_TIME_CYCLE: DiagnosticCode
pub const BROKEN_DEFINITION: DiagnosticCode
pub const BROKEN_MACRO: DiagnosticCode
pub const NOT_AT_COMPILE_TIME: DiagnosticCode
pub const COMPILE_TIME_ARGUMENT_COUNT: DiagnosticCode
pub const NOT_CALLABLE: DiagnosticCode
pub const NOT_A_BOOLEAN: DiagnosticCode
pub const INDEX_OUT_OF_RANGE: DiagnosticCode
pub const ARITHMETIC_OVERFLOW: DiagnosticCode
pub const RUNTIME_ONLY: DiagnosticCode
pub const MATCH_AT_RUNTIME: DiagnosticCode
pub const COMPILE_TIME_RECURSION: DiagnosticCode
pub const RUST_CODE_PROGRAM_ONLY: DiagnosticCode
pub const REPEATED_PARAMETER: DiagnosticCode
pub const FAILURE_PART: DiagnosticCode
pub const UNKNOWN_FAILURE_CODE: DiagnosticCode
pub const UNKNOWN_PARAMETER: DiagnosticCode
pub const UNKNOWN_FIELD_DEFAULT: DiagnosticCode
pub const EXPANSION_NESTS_TOO_DEEP: DiagnosticCode
pub const EXPANSION_TOO_LARGE: DiagnosticCode
pub const UNDOCUMENTED_TERM: DiagnosticCode
pub const DOCSTRING_BEFORE_PARAMETERS: DiagnosticCode
pub const MALFORMED_HEADER_SHAPE: DiagnosticCode
pub const UNEQUAL_REPETITIONS: DiagnosticCode
pub const UNEXPECTED_HEADER_SHAPE_MARKER: DiagnosticCode
pub const TRAILING_COLON: DiagnosticCode
pub const DUPLICATE_TEST: DiagnosticCode
pub const BINDING_WITHOUT_VALUE: DiagnosticCode
pub const BINDINGS_WITHOUT_BODY: DiagnosticCode
pub const MALFORMED_BINDING_LIST: DiagnosticCode
pub const PARTLY_LABELED_CALL: DiagnosticCode
pub const MALFORMED_DEFINER_HEAD: DiagnosticCode
pub const MISPLACED_RUST_CLAUSE: DiagnosticCode
pub const MALFORMED_RUST_CLAUSE: DiagnosticCode
pub const MALFORMED_TRAIT_METHOD: DiagnosticCode
pub const METHOD_IN_RUST_TRAIT: DiagnosticCode
pub const RUST_TRAIT_SUPERTRAITS: DiagnosticCode
pub const DEFTYPE_WITHOUT_RUST: DiagnosticCode
pub const MALFORMED_VARIANT: DiagnosticCode
pub const VARIANT_STRUCT_PAYLOAD: DiagnosticCode
pub const MIXED_VARIANT_ITEMS: DiagnosticCode
pub const VARIANT_FIELD_WITHOUT_TYPE: DiagnosticCode
pub const PROJECT_FORM_IN_PROGRAM: DiagnosticCode
pub const UNDEFINED_DOCUMENTED_TERM: DiagnosticCode
pub const PRN_WITHOUT_VALUE: DiagnosticCode
pub const UPDATE_ARGUMENTS: DiagnosticCode
pub const MISMATCHED_TYPES: DiagnosticCode
pub const WRONG_ARGUMENT_COUNT: DiagnosticCode
pub const NOT_A_FUNCTION: DiagnosticCode
pub const MISSING_TRAIT: DiagnosticCode
pub const LITERAL_OUT_OF_RANGE: DiagnosticCode
pub const CANNOT_INFER: DiagnosticCode
pub const UNKNOWN_FIELD: DiagnosticCode
pub const MISSING_FIELDS: DiagnosticCode
pub const NO_FIELDS: DiagnosticCode
pub const INFINITE_TYPE: DiagnosticCode
pub const COMPILE_TIME_ONLY: DiagnosticCode
pub const MISPLACED_WHERE: DiagnosticCode
pub const LITERAL_TYPE_PARAMETER: DiagnosticCode
pub const WRONG_TYPE_ARGUMENT_COUNT: DiagnosticCode
pub const UNUSED_TYPE_PARAMETER: DiagnosticCode
pub const BOUNDED_TYPE_PARAMETER: DiagnosticCode
pub const BARE_IMPLEMENTOR: DiagnosticCode
pub const MUT_BORROW_OF_COPY: DiagnosticCode
pub const TRAIT_CLAIM_ON_STRUCT: DiagnosticCode
pub const NOT_DERIVABLE: DiagnosticCode
pub const BLOCKED_DERIVE: DiagnosticCode
pub const DUPLICATE_DERIVE: DiagnosticCode
pub const TRAIT_NO_SECOND_TYPE: DiagnosticCode
pub const MISPLACED_WITH: DiagnosticCode
pub const TRY_TARGET: DiagnosticCode
pub const TRY_NOT_RESULT_OR_OPTION: DiagnosticCode
pub const TRY_NO_CONVERSION: DiagnosticCode
pub const AMBIGUOUS_VARIANT: DiagnosticCode
pub const UNKNOWN_VARIANT: DiagnosticCode
pub const WRONG_PATTERN_COUNT: DiagnosticCode
pub const NON_EXHAUSTIVE_MATCH: DiagnosticCode
pub const UNREACHABLE_ARM: DiagnosticCode
pub const DERIVE_ON_RUST_TYPE: DiagnosticCode
pub const VARIANT_ARM_VALUE: DiagnosticCode
pub const ENUM_RUST_TEMPLATE: DiagnosticCode
pub const RECURSIVELY_USED_TYPE_PARAMETER: DiagnosticCode
pub const MISSING_BOUND: DiagnosticCode
pub const LITERAL_MISFIT: DiagnosticCode
pub const QUOTE_AT_RUNTIME: DiagnosticCode
pub const UNUSED_ENUM_PARAMETER: DiagnosticCode
pub const UNSIZABLE_IMPLEMENTOR: DiagnosticCode
pub const FOREIGN_IMPLEMENTOR: DiagnosticCode
pub const SUPERTRAIT: DiagnosticCode
pub const ASSOCIATED_TYPE: DiagnosticCode
pub const OBJECT_SAFETY: DiagnosticCode
pub const TRAIT_OUTSIDE_BOX: DiagnosticCode
pub const MISSING_ASSOCIATED_VALUE: DiagnosticCode
pub const PROJECTION_WITHOUT_IMPLEMENTOR: DiagnosticCode
pub const UNDECLARED_ASSOCIATED_VALUE: DiagnosticCode
pub const PROJECTION_WITHOUT_BOUND: DiagnosticCode
pub const REPEATED_FIELD: DiagnosticCode
pub const MAIN_RETURNS_VALUE: DiagnosticCode
pub const SELFLESS_METHOD_CALL: DiagnosticCode
pub const UNKNOWN_COLLECTION: DiagnosticCode
pub const UNNAMEABLE_TYPE: DiagnosticCode
pub const SECOND_IMPL: DiagnosticCode
pub const UNKNOWN_PATTERN_FIELD: DiagnosticCode
pub const REPEATED_PATTERN_FIELD: DiagnosticCode
pub const MIXED_PATTERN_FORMS: DiagnosticCode
pub const KEYWORD_WITHOUT_PATTERN: DiagnosticCode
pub const COVERED_CLAUSE: DiagnosticCode
pub const REQUIREMENT_CYCLE: DiagnosticCode
pub const USE_AFTER_MOVE: DiagnosticCode
pub const NEEDS_OWNERSHIP: DiagnosticCode
pub const MISSING_BANG: DiagnosticCode
pub const MISSING_COPY_BOUND: DiagnosticCode
pub const WRITTEN_MODE_MISMATCH: DiagnosticCode
pub const FUNCTION_VALUE_MISMATCH: DiagnosticCode
pub const CLOSURE_KIND_MISMATCH: DiagnosticCode
pub const LOCAL_BORROW: DiagnosticCode
pub const CAPTURING_FUNCTION_FIELD: DiagnosticCode
pub const LENT_LOCAL_BORROW: DiagnosticCode
pub const MISSING_MAIN: DiagnosticCode
pub const NAME_COLLISION: DiagnosticCode
pub const BAD_TEMPLATE: DiagnosticCode
pub const RUST_ERROR: DiagnosticCode
pub const UNTIED_IMPLEMENTOR_BORROW: DiagnosticCode
pub const MISSING_PROJECT_FORM: DiagnosticCode
pub const EXTRA_PROJECT_FORM: DiagnosticCode
pub const MISSING_PROJECT_NAME: DiagnosticCode
pub const UNKNOWN_PROJECT_KEY: DiagnosticCode
pub const MISSING_PROJECT_VALUE: DiagnosticCode
pub const MISMATCHED_PROJECT_VALUE: DiagnosticCode
pub const UNKNOWN_PROJECT_SECTION: DiagnosticCode
pub const UNEXPECTED_PROJECT_FORM: DiagnosticCode
pub const DUPLICATE_PROJECT_ENTRY: DiagnosticCode
pub const MALFORMED_DEPENDENCY: DiagnosticCode
pub const VERSIONED_LIBRARY: DiagnosticCode
pub const LIBRARY_WITHOUT_SOURCE: DiagnosticCode
pub const CONFLICTING_LIBRARY_SOURCES: DiagnosticCode
pub const GIT_LIBRARY_WITHOUT_REVISION: DiagnosticCode
pub const SHORT_REVISION: DiagnosticCode
pub const UNVERSIONED_CRATE: DiagnosticCode
pub const UNKNOWN_EDITION: DiagnosticCode
pub const INVALID_PROJECT_NAME: DiagnosticCode
pub const UNBUILT_PROJECT_SECTION: DiagnosticCode
pub const RESERVED_LIBRARY_NAME: DiagnosticCode
pub const INVALID_LIBRARY_NAME: DiagnosticCode
pub const LIBRARY_AT_TWO_SOURCES: DiagnosticCode
pub const LIBRARY_WITHOUT_PROJECT_FILE: DiagnosticCode
pub const LIBRARY_WITHOUT_ROOT_MODULE: DiagnosticCode
pub const GIT_LIBRARY_UNAVAILABLE: DiagnosticCode
pub const INVALID_GIT_REPOSITORY: DiagnosticCode
pub const PATH_OUTSIDE_CHECKOUT: DiagnosticCode
Source§impl DiagnosticCode
impl DiagnosticCode
pub fn from_rustc(code: String) -> DiagnosticCode
pub fn as_str(&self) -> &str
pub fn macro_stage_named(name: &str) -> Option<DiagnosticCode>
pub fn macro_stage_names() -> Vec<Rc<str>>
Trait Implementations§
Source§impl Clone for DiagnosticCode
impl Clone for DiagnosticCode
Source§fn clone(&self) -> DiagnosticCode
fn clone(&self) -> DiagnosticCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiagnosticCode
impl Debug for DiagnosticCode
impl Eq for DiagnosticCode
Source§impl Hash for DiagnosticCode
impl Hash for DiagnosticCode
Source§impl PartialEq for DiagnosticCode
impl PartialEq for DiagnosticCode
impl StructuralPartialEq for DiagnosticCode
Auto Trait Implementations§
impl Forget for DiagnosticCode
impl Freeze for DiagnosticCode
impl RefUnwindSafe for DiagnosticCode
impl Send for DiagnosticCode
impl Sync for DiagnosticCode
impl Unpin for DiagnosticCode
impl UnsafeUnpin for DiagnosticCode
impl UnwindSafe for DiagnosticCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more