pub struct SpanData {
pub span: Span<ZeroIndexed>,
pub len: Option<u64>,
}
Expand description
Span of the text to be replaced defined in col/row terms.
Fields§
§span: Span<ZeroIndexed>
Span of the text defined in col/row terms.
len: Option<u64>
Length in chars of the text. If present, used to calculate replacement range instead of span’s row_end/col_end fields. Needed for editors that can’t properly calculate the latter fields. Span’s row_start/col_start are still assumed valid.
Trait Implementations§
Source§impl Ord for SpanData
impl Ord for SpanData
Source§impl PartialOrd for SpanData
impl PartialOrd for SpanData
impl Eq for SpanData
impl StructuralPartialEq for SpanData
Auto Trait Implementations§
impl Freeze for SpanData
impl RefUnwindSafe for SpanData
impl Send for SpanData
impl Sync for SpanData
impl Unpin for SpanData
impl UnwindSafe for SpanData
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