pub struct ByteRange(pub Range<usize>);Expand description
ByteRange(byte_start..byte_end)
Tuple Fields§
§0: Range<usize>The start (inclusive) and end (exclusive) byte positions.
Trait Implementations§
Source§impl From<LineColByteRange> for ByteRange
impl From<LineColByteRange> for ByteRange
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
impl Eq for ByteRange
impl StructuralPartialEq for ByteRange
Auto Trait Implementations§
impl Freeze for ByteRange
impl RefUnwindSafe for ByteRange
impl Send for ByteRange
impl Sync for ByteRange
impl Unpin for ByteRange
impl UnwindSafe for ByteRange
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