Struct json_syntax::code_map::Mapped
source · 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)>
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: PartialEq> PartialEq for Mapped<T>
impl<T: PartialEq> PartialEq for Mapped<T>
source§impl<T: PartialOrd> PartialOrd for Mapped<T>
impl<T: PartialOrd> PartialOrd for Mapped<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<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