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<SpanData> for SpanData
impl PartialOrd<SpanData> for SpanData
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more