Enum codespan::ByteIndexError [−][src]
pub enum ByteIndexError { OutOfBounds { given: ByteIndex, span: ByteSpan, }, InvalidCharBoundary { given: ByteIndex, }, }
Variants
OutOfBounds
Fields of OutOfBounds
given: ByteIndex | |
span: ByteSpan |
InvalidCharBoundary
Fields of InvalidCharBoundary
given: ByteIndex |
Trait Implementations
impl Debug for ByteIndexError
[src]
impl Debug for ByteIndexError
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 ByteIndexError
[src]
impl PartialEq for ByteIndexError
fn eq(&self, other: &ByteIndexError) -> bool
[src]
fn eq(&self, other: &ByteIndexError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ByteIndexError) -> bool
[src]
fn ne(&self, other: &ByteIndexError) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ByteIndexError
impl Send for ByteIndexError
impl Sync for ByteIndexError
impl Sync for ByteIndexError