pub struct MissingItem {
pub(crate) item: Item,
pub(crate) position: usize,
pub(crate) scope: Range<usize>,
}Expand description
Missing item in a context
Fields§
§item: ItemItem that is missing
position: usizePosition it is missing from - exact for positionals, earliest possible for flags
scope: Range<usize>Range where search was performed, important for combinators that narrow the search scope such as adjacent
Trait Implementations§
Source§impl Clone for MissingItem
impl Clone for MissingItem
Source§fn clone(&self) -> MissingItem
fn clone(&self) -> MissingItem
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 Freeze for MissingItem
impl RefUnwindSafe for MissingItem
impl Send for MissingItem
impl Sync for MissingItem
impl Unpin for MissingItem
impl UnwindSafe for MissingItem
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