#[non_exhaustive]pub enum DiagnosticEndColumn {
SameLineEnd(CharColumn),
Multiline,
EmptySpan,
}Expand description
End-column shape for a diagnostic span.
The end column is an exclusive 1-based Unicode-scalar column only when a
diagnostic covers non-empty text on one line. Multi-line and empty spans are
separate variants so callers cannot silently treat both cases as None.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SameLineEnd(CharColumn)
Non-empty single-line diagnostic ending at this exclusive column.
Multiline
Diagnostic span crosses at least one newline.
EmptySpan
Diagnostic span is zero-width.
Trait Implementations§
Source§impl Clone for DiagnosticEndColumn
impl Clone for DiagnosticEndColumn
Source§fn clone(&self) -> DiagnosticEndColumn
fn clone(&self) -> DiagnosticEndColumn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiagnosticEndColumn
Source§impl Debug for DiagnosticEndColumn
impl Debug for DiagnosticEndColumn
impl Eq for DiagnosticEndColumn
Source§impl PartialEq for DiagnosticEndColumn
impl PartialEq for DiagnosticEndColumn
Source§fn eq(&self, other: &DiagnosticEndColumn) -> bool
fn eq(&self, other: &DiagnosticEndColumn) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiagnosticEndColumn
Auto Trait Implementations§
impl Freeze for DiagnosticEndColumn
impl RefUnwindSafe for DiagnosticEndColumn
impl Send for DiagnosticEndColumn
impl Sync for DiagnosticEndColumn
impl Unpin for DiagnosticEndColumn
impl UnsafeUnpin for DiagnosticEndColumn
impl UnwindSafe for DiagnosticEndColumn
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