pub struct Delta<T> {
pub value: T,
pub range: Range<T>,
}
Fields
value: T
range: Range<T>
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for Delta<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Delta<T> where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: Ord> Ord for Delta<T>
impl<T: Ord> Ord for Delta<T>
sourceimpl<T: PartialOrd> PartialOrd<Delta<T>> for Delta<T>
impl<T: PartialOrd> PartialOrd<Delta<T>> for Delta<T>
sourcefn partial_cmp(&self, other: &Delta<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Delta<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<T: Copy> Copy for Delta<T>
impl<T: Eq> Eq for Delta<T>
impl<T> StructuralEq for Delta<T>
impl<T> StructuralPartialEq for Delta<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Delta<T> where
T: RefUnwindSafe,
impl<T> Send for Delta<T> where
T: Send,
impl<T> Sync for Delta<T> where
T: Sync,
impl<T> Unpin for Delta<T> where
T: Unpin,
impl<T> UnwindSafe for Delta<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more