pub struct OptContext<T> {
pub prev: Option<T>,
pub curr: Option<T>,
pub next: Option<T>,
}
Expand description
Like Context
, but curr
is also optional.
Fields§
§prev: Option<T>
The previous item, if any.
curr: Option<T>
The current item.
next: Option<T>
The next item, if any.
Auto Trait Implementations§
impl<T> Freeze for OptContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptContext<T>where
T: RefUnwindSafe,
impl<T> Send for OptContext<T>where
T: Send,
impl<T> Sync for OptContext<T>where
T: Sync,
impl<T> Unpin for OptContext<T>where
T: Unpin,
impl<T> UnwindSafe for OptContext<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