pub struct Context<T> {
pub prev: Option<T>,
pub curr: T,
pub next: Option<T>,
}
Expand description
An item in a slice, possibly with the item before or after it.
Fields§
§prev: Option<T>
The previous item, if any.
curr: T
The current item.
next: Option<T>
The next item, if any.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Context<T>where
T: Freeze,
impl<T> RefUnwindSafe for Context<T>where
T: RefUnwindSafe,
impl<T> Send for Context<T>where
T: Send,
impl<T> Sync for Context<T>where
T: Sync,
impl<T> Unpin for Context<T>where
T: Unpin,
impl<T> UnwindSafe for Context<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