pub struct TextSize(/* private fields */);Expand description
Source positions, spans, and text range utilities.
A byte offset in source text, analogous to ruff’s TextSize.
Implementations§
Trait Implementations§
Source§impl Ord for TextSize
impl Ord for TextSize
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
Source§impl PartialOrd for TextSize
impl PartialOrd for TextSize
impl Copy for TextSize
impl Eq for TextSize
impl StructuralPartialEq for TextSize
Auto Trait Implementations§
impl Freeze for TextSize
impl RefUnwindSafe for TextSize
impl Send for TextSize
impl Sync for TextSize
impl Unpin for TextSize
impl UnsafeUnpin for TextSize
impl UnwindSafe for TextSize
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