Enum codespan_lsp::Error [−][src]
pub enum Error { SpanOutsideCodeMap(ByteIndex), UnableToCorrelateFilename(FileName), ByteIndexError(ByteIndexError), LocationError(LocationError), LineIndexError(LineIndexError), }
Variants
SpanOutsideCodeMap(ByteIndex)
UnableToCorrelateFilename(FileName)
ByteIndexError(ByteIndexError)
LocationError(LocationError)
LineIndexError(LineIndexError)
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl From<ByteIndexError> for Error
[src]
impl From<ByteIndexError> for Error
fn from(e: ByteIndexError) -> Error
[src]
fn from(e: ByteIndexError) -> Error
Performs the conversion.
impl From<LocationError> for Error
[src]
impl From<LocationError> for Error
fn from(e: LocationError) -> Error
[src]
fn from(e: LocationError) -> Error
Performs the conversion.
impl From<LineIndexError> for Error
[src]
impl From<LineIndexError> for Error
fn from(e: LineIndexError) -> Error
[src]
fn from(e: LineIndexError) -> Error
Performs the conversion.