pub struct ItemPosition<I>(pub Position, pub I);
Tuple Fields§
§0: Position
§1: I
Implementations§
Source§impl<I> ItemPosition<I>
impl<I> ItemPosition<I>
pub fn new(start: usize, length: usize, item: I) -> ItemPosition<I>
pub fn replace<U>(&self, x: U) -> ItemPosition<U>
Trait Implementations§
Source§impl<I: Debug> Debug for ItemPosition<I>
impl<I: Debug> Debug for ItemPosition<I>
Source§impl<I: PartialEq> PartialEq for ItemPosition<I>
impl<I: PartialEq> PartialEq for ItemPosition<I>
impl<I> StructuralPartialEq for ItemPosition<I>
Auto Trait Implementations§
impl<I> Freeze for ItemPosition<I>where
I: Freeze,
impl<I> RefUnwindSafe for ItemPosition<I>where
I: RefUnwindSafe,
impl<I> Send for ItemPosition<I>where
I: Send,
impl<I> Sync for ItemPosition<I>where
I: Sync,
impl<I> Unpin for ItemPosition<I>where
I: Unpin,
impl<I> UnwindSafe for ItemPosition<I>where
I: 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