Enum lc3_ensemble::err::ErrSpan
source · pub enum ErrSpan {
One(Span),
Two([Span; 2]),
Many(Vec<Span>),
}Expand description
The possible source ranges for an error.
This can be:
- one contiguous span,
- two contiguous spans, or
- three or more contiguous spans
Variants§
One(Span)
One contiguous span.
Two([Span; 2])
Two contiguous spans.
Many(Vec<Span>)
Three or more contiguous spans.
This should always have at least 3 elements.
Implementations§
Trait Implementations§
source§impl Extend<Range<usize>> for ErrSpan
impl Extend<Range<usize>> for ErrSpan
source§fn extend<T: IntoIterator<Item = Span>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Span>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl PartialEq for ErrSpan
impl PartialEq for ErrSpan
impl Eq for ErrSpan
impl StructuralPartialEq for ErrSpan
Auto Trait Implementations§
impl Freeze for ErrSpan
impl RefUnwindSafe for ErrSpan
impl Send for ErrSpan
impl Sync for ErrSpan
impl Unpin for ErrSpan
impl UnwindSafe for ErrSpan
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