pub struct CodeLabel {
pub code: String,
pub spans: Vec<CodeLabelSpan>,
pub filter_range: Range,
}
Expand description
A label containing some code.
Fields§
§code: String
The source code to parse with Tree-sitter.
spans: Vec<CodeLabelSpan>
The spans to display in the label.
filter_range: Range
The range of the displayed label to include when filtering.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeLabel
impl RefUnwindSafe for CodeLabel
impl Send for CodeLabel
impl Sync for CodeLabel
impl Unpin for CodeLabel
impl UnwindSafe for CodeLabel
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