#[non_exhaustive]pub struct Annotation<'a> {
pub range: Range<usize>,
pub label: Option<Cow<'a, str>>,
pub level: Level,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.range: Range<usize>§label: Option<Cow<'a, str>>§level: LevelImplementations§
Trait Implementations§
Source§impl<'a> Debug for Annotation<'a>
impl<'a> Debug for Annotation<'a>
Source§impl<'de, 'a> Deserialize<'de> for Annotation<'a>
impl<'de, 'a> Deserialize<'de> for Annotation<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, 'b> From<&'b Annotation<'a>> for Annotation<'b>
impl<'a, 'b> From<&'b Annotation<'a>> for Annotation<'b>
Source§fn from(value: &'b Annotation<'a>) -> Self
fn from(value: &'b Annotation<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Annotation<'a>
impl<'a> RefUnwindSafe for Annotation<'a>
impl<'a> Send for Annotation<'a>
impl<'a> Sync for Annotation<'a>
impl<'a> Unpin for Annotation<'a>
impl<'a> UnwindSafe for Annotation<'a>
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