pub struct Range<T = usize> {
pub start: T,
pub end: T,
}Expand description
A range of chars within the text.
Fields§
§start: T§end: TImplementations§
Trait Implementations§
impl<T: Copy> Copy for Range<T>
impl<T: Eq> Eq for Range<T>
Source§impl<T: Ord> Ord for Range<T>
impl<T: Ord> Ord for Range<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Range<T>
impl<T: PartialOrd> PartialOrd for Range<T>
Source§impl<T> RangeBounds<T> for Range<T>
impl<T> RangeBounds<T> for Range<T>
impl<T: PartialEq> StructuralPartialEq for Range<T>
Auto Trait Implementations§
impl<T> Freeze for Range<T>where
T: Freeze,
impl<T> RefUnwindSafe for Range<T>where
T: RefUnwindSafe,
impl<T> Send for Range<T>where
T: Send,
impl<T> Sync for Range<T>where
T: Sync,
impl<T> Unpin for Range<T>where
T: Unpin,
impl<T> UnsafeUnpin for Range<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Range<T>where
T: UnwindSafe,
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