Struct node_semver::SemverError [−][src]
pub struct SemverError { /* fields omitted */ }
Expand description
Semver version or range parsing error wrapper.
This wrapper is used to hold some parsing-related metadata, as well as a more specific SemverErrorKind.
Implementations
Returns the SourceSpan of the error.
Returns the (0-based) byte offset where the parsing error happened.
Returns the more specific SemverErrorKind for this error.
This value can also be fetched through std::error::Error::source, but that would require downcasting to match types.
Trait Implementations
Unique diagnostic code that can be used to look up more information
about this Diagnostic. Ideally also globally unique, and documented in
the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz
) is recommended, but more classic codes like
E0123
or Enums will work just fine. Read more
Diagnostic severity. This may be used by [ReportHandler]s to change the display format of this diagnostic. Read more
Additional help text related to this Diagnostic. Do you have any advice for the poor soul who’s just run into this issue? Read more
URL to visit for a more detailed explanation/help about this Diagnostic.
Source code to apply this Diagnostic’s Diagnostic::labels to.
Labels to apply to this Diagnostic’s Diagnostic::source_code
Additional related Diagnostics.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SemverError
impl Send for SemverError
impl Sync for SemverError
impl Unpin for SemverError
impl UnwindSafe for SemverError
Blanket Implementations
Mutably borrows from an owned value. Read more