Enum codespan::ByteIndexError [−][src]
pub enum ByteIndexError {
OutOfBounds {
given: ByteIndex,
span: ByteSpan,
},
InvalidCharBoundary {
given: ByteIndex,
},
}Variants
OutOfBoundsFields of OutOfBounds
given: ByteIndex | |
span: ByteSpan |
InvalidCharBoundaryFields of InvalidCharBoundary
given: ByteIndex |
Trait Implementations
impl Debug for ByteIndexError[src]
impl Debug for ByteIndexErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ByteIndexError[src]
impl PartialEq for ByteIndexErrorfn eq(&self, other: &ByteIndexError) -> bool[src]
fn eq(&self, other: &ByteIndexError) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ByteIndexError
impl Send for ByteIndexErrorimpl Sync for ByteIndexError
impl Sync for ByteIndexError