pub fn narrow(self, amount: impl IntoByteIndex) -> Self {
        let amount = amount.into_byte_index();

        Self {
            start: self.start.saturating_add(amount),
            end: self.end.saturating_sub(amount),
        }
    }
/// Narrow the span with the given amount.
Narrow the span with the given amount.
Narrow the span with the given amount .
pub fn narrow(self, amount: impl IntoByteIndex) -> Self {
        let amount = amount.into_byte_index();
        Self {
            start: self.start.saturating_add(amount),
            end: self.end.saturating_sub(amount),
        }
    }
pub fn narrow ( self , amount : impl IntoByteIndex ) -> Self { let amount = amount . into_byte_index ( ) ; Self { start : self . start . saturating_add ( amount ) , end : self . end . saturating_sub ( amount ) , } }
Narrow the span with the given amount.
Narrow the span with the given amount .
self
amount
impl IntoByteIndex
self
amount
impl IntoByteIndex