#[repr(C)]pub struct Offsets(/* private fields */);
Expand description
A collection of line offsets.
Typically used to identify the lines belonging to a particular request.
Implementations§
Source§impl Offsets
impl Offsets
Sourcepub fn from_slice(s: &[u32]) -> Self
pub fn from_slice(s: &[u32]) -> Self
Create offsets from an iterable list.
Sourcepub fn copy_from_slice(&mut self, s: &[u32])
pub fn copy_from_slice(&mut self, s: &[u32])
Copy offsets from an iterable list.
Trait Implementations§
impl Eq for Offsets
impl StructuralPartialEq for Offsets
Auto Trait Implementations§
impl Freeze for Offsets
impl RefUnwindSafe for Offsets
impl Send for Offsets
impl Sync for Offsets
impl Unpin for Offsets
impl UnwindSafe for Offsets
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