pub fn last(&self) -> Option<Index> {
        if self.is_empty() {
            None
        } else {
            self.end().checked_sub(Size::new(1))
        }
    }
/// Get the index of the last character in the span.
///
/// If the span is empty returns `None`.
Get the index of the last character in the span.
If the span is empty returns `None`.
Get the index of the last character in the span . If the span is empty returns ` None ` .
pub fn last(&self) -> Option<Index> {
        if self.is_empty() {
            None
        } else {
            self.end().checked_sub(Size::new(1))
        }
    }
pub fn last ( & self ) -> Option < Index > { if self . is_empty ( ) { None } else { self . end ( ) . checked_sub ( Size :: new ( 1 ) ) } }
Get the index of the last character in the span.
Get the index of the last character in the span .
&self
&self