pub struct Mapped<T> {
pub offset: usize,
pub value: T,
}
Fields§
§offset: usize
§value: T
Implementations§
Trait Implementations§
Source§impl<T: 'static + Error> Error for Mapped<T>
impl<T: 'static + Error> Error for Mapped<T>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<T: Ord> Ord for Mapped<T>
impl<T: Ord> Ord for Mapped<T>
Source§impl<T: PartialOrd> PartialOrd for Mapped<T>
impl<T: PartialOrd> PartialOrd for Mapped<T>
impl<T: Copy> Copy for Mapped<T>
impl<T: Eq> Eq for Mapped<T>
impl<T> StructuralPartialEq for Mapped<T>
Auto Trait Implementations§
impl<T> Freeze for Mapped<T>where
T: Freeze,
impl<T> RefUnwindSafe for Mapped<T>where
T: RefUnwindSafe,
impl<T> Send for Mapped<T>where
T: Send,
impl<T> Sync for Mapped<T>where
T: Sync,
impl<T> Unpin for Mapped<T>where
T: Unpin,
impl<T> UnwindSafe for Mapped<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