pub struct Chunk<'a> {
pub text: &'a str,
pub syntax_highlight_id: Option<HighlightId>,
pub highlight_style: Option<HighlightStyle>,
pub diagnostic_severity: Option<DiagnosticSeverity>,
pub is_unnecessary: bool,
pub is_tab: bool,
}
Fields§
§text: &'a str
§syntax_highlight_id: Option<HighlightId>
§highlight_style: Option<HighlightStyle>
§diagnostic_severity: Option<DiagnosticSeverity>
§is_unnecessary: bool
§is_tab: bool
Trait Implementations§
impl<'a> Copy for Chunk<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Chunk<'a>
impl<'a> Send for Chunk<'a>
impl<'a> Sync for Chunk<'a>
impl<'a> Unpin for Chunk<'a>
impl<'a> UnwindSafe for Chunk<'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