pub struct WithPosExt<T> {
pub inner: T,
pub start: usize,
pub end: usize,
}Expand description
A position-annotated wrapper for any value.
Fields§
§inner: TThe wrapped value
start: usizeByte start offset
end: usizeByte end offset
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for WithPosExt<T>
impl<T: Clone> Clone for WithPosExt<T>
Source§fn clone(&self) -> WithPosExt<T>
fn clone(&self) -> WithPosExt<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for WithPosExt<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithPosExt<T>where
T: RefUnwindSafe,
impl<T> Send for WithPosExt<T>where
T: Send,
impl<T> Sync for WithPosExt<T>where
T: Sync,
impl<T> Unpin for WithPosExt<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithPosExt<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WithPosExt<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