Enum rustc_errors::snippet::AnnotationType [−][src]
pub enum AnnotationType {
Singleline,
Multiline(MultilineAnnotation),
MultilineStart(usize),
MultilineEnd(usize),
MultilineLine(usize),
}
Variants
Annotation under a single line of code
Multiline(MultilineAnnotation)
Annotation enclosing the first and last character of a multiline span
Tuple Fields of Multiline
MultilineStart(usize)
Annotation marking the first character of a fully shown multiline span
Tuple Fields of MultilineStart
0: usize
MultilineEnd(usize)
Annotation marking the last character of a fully shown multiline span
Tuple Fields of MultilineEnd
0: usize
MultilineLine(usize)
Line at the left enclosing the lines of a fully shown multiline span
Tuple Fields of MultilineLine
0: usize
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnnotationType
impl Send for AnnotationType
impl Sync for AnnotationType
impl Unpin for AnnotationType
impl UnwindSafe for AnnotationType
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes
Size for each variant:
Singleline
: 0 bytesMultiline
: 72 bytesMultilineStart
: 8 bytesMultilineEnd
: 8 bytesMultilineLine
: 8 bytes