pub struct GridSpan {
pub start: usize,
pub end: usize,
pub kind: GridSpanKind,
}Expand description
A styled byte range within one rendered line.
Fields§
§start: usizeByte offset of the span’s first byte in its line.
end: usizeByte offset one past the span’s last byte (exclusive).
kind: GridSpanKindWhat the span covers.
Trait Implementations§
impl Copy for GridSpan
impl Eq for GridSpan
impl StructuralPartialEq for GridSpan
Auto Trait Implementations§
impl Freeze for GridSpan
impl RefUnwindSafe for GridSpan
impl Send for GridSpan
impl Sync for GridSpan
impl Unpin for GridSpan
impl UnsafeUnpin for GridSpan
impl UnwindSafe for GridSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.