pub struct CodeLabel {
pub text: String,
pub runs: Vec<(Range<usize>, HighlightId)>,
pub filter_range: Range<usize>,
}
Fields§
§text: String
§runs: Vec<(Range<usize>, HighlightId)>
§filter_range: Range<usize>
Implementations§
Trait Implementations§
source§impl PartialEq<CodeLabel> for CodeLabel
impl PartialEq<CodeLabel> for CodeLabel
impl Eq for CodeLabel
impl StructuralEq for CodeLabel
impl StructuralPartialEq for CodeLabel
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.