pub struct Element<T = f64> {
pub index: i64,
pub value: T,
}Expand description
A single stored position: the serialization shape, so a round trip has to carry the default value alongside.
Fields§
§index: i64The position.
value: TThe value stored there.
Trait Implementations§
impl<T: Copy> Copy for Element<T>
impl<T: Eq> Eq for Element<T>
Source§impl<T: Ord> Ord for Element<T>
impl<T: Ord> Ord for Element<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Element<T>
impl<T: PartialOrd> PartialOrd for Element<T>
impl<T: PartialEq> StructuralPartialEq for Element<T>
Auto Trait Implementations§
impl<T> Freeze for Element<T>where
T: Freeze,
impl<T> RefUnwindSafe for Element<T>where
T: RefUnwindSafe,
impl<T> Send for Element<T>where
T: Send,
impl<T> Sync for Element<T>where
T: Sync,
impl<T> Unpin for Element<T>where
T: Unpin,
impl<T> UnsafeUnpin for Element<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Element<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