Struct leap_lang::parser::itemposition::ItemPosition
source · [−]pub struct ItemPosition<I>(pub Position, pub I);
Tuple Fields
0: Position
1: I
Implementations
sourceimpl<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
sourceimpl<I: Debug> Debug for ItemPosition<I>
impl<I: Debug> Debug for ItemPosition<I>
sourceimpl<I: PartialEq> PartialEq<ItemPosition<I>> for ItemPosition<I>
impl<I: PartialEq> PartialEq<ItemPosition<I>> for ItemPosition<I>
sourcefn eq(&self, other: &ItemPosition<I>) -> bool
fn eq(&self, other: &ItemPosition<I>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ItemPosition<I>) -> bool
fn ne(&self, other: &ItemPosition<I>) -> bool
This method tests for !=
.
impl<I> StructuralPartialEq for ItemPosition<I>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more