#[repr(transparent)]pub struct TotalOrdWrap<T>(pub T);Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for TotalOrdWrap<T>
impl<T: Clone> Clone for TotalOrdWrap<T>
impl<T: Copy> Copy for TotalOrdWrap<T>
Source§impl<T: Debug> Debug for TotalOrdWrap<T>
impl<T: Debug> Debug for TotalOrdWrap<T>
Source§impl<'de, T> Deserialize<'de> for TotalOrdWrap<T>where
T: Deserialize<'de>,
Available on crate feature serde only.
impl<'de, T> Deserialize<'de> for TotalOrdWrap<T>where
T: Deserialize<'de>,
Available on crate feature
serde only.Source§fn 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
Source§impl<T: DirtyHash> DirtyHash for TotalOrdWrap<T>
impl<T: DirtyHash> DirtyHash for TotalOrdWrap<T>
fn dirty_hash(&self) -> u64
impl<T: TotalEq> Eq for TotalOrdWrap<T>
Source§impl<T: TotalHash> Hash for TotalOrdWrap<T>
impl<T: TotalHash> Hash for TotalOrdWrap<T>
Source§impl<T: IsNull> IsNull for TotalOrdWrap<T>
impl<T: IsNull> IsNull for TotalOrdWrap<T>
Source§impl<T> JsonSchema for TotalOrdWrap<T>where
T: JsonSchema,
Available on crate feature dsl-schema only.
impl<T> JsonSchema for TotalOrdWrap<T>where
T: JsonSchema,
Available on crate feature
dsl-schema only.Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl<T: TotalOrd> Ord for TotalOrdWrap<T>
impl<T: TotalOrd> Ord for TotalOrdWrap<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: TotalEq> PartialEq for TotalOrdWrap<T>
impl<T: TotalEq> PartialEq for TotalOrdWrap<T>
Source§impl<T: TotalOrd> PartialOrd for TotalOrdWrap<T>
impl<T: TotalOrd> PartialOrd for TotalOrdWrap<T>
Source§impl<T> Serialize for TotalOrdWrap<T>where
T: Serialize,
Available on crate feature serde only.
impl<T> Serialize for TotalOrdWrap<T>where
T: Serialize,
Available on crate feature
serde only.Source§impl<T> TransparentWrapper<T> for TotalOrdWrap<T>
impl<T> TransparentWrapper<T> for TotalOrdWrap<T>
§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
§fn wrap_slice(s: &[Inner]) -> &[Self]
fn wrap_slice(s: &[Inner]) -> &[Self]
Convert a slice to the inner type into a slice to the wrapper type.
§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
§fn peel_slice(s: &[Self]) -> &[Inner]
fn peel_slice(s: &[Self]) -> &[Inner]
Convert a slice to the wrapped type into a slice to the inner type.
§fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]
fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]
Convert a mutable slice to the wrapped type into a mutable slice to the
inner type.
Auto Trait Implementations§
impl<T> Freeze for TotalOrdWrap<T>where
T: Freeze,
impl<T> RefUnwindSafe for TotalOrdWrap<T>where
T: RefUnwindSafe,
impl<T> Send for TotalOrdWrap<T>where
T: Send,
impl<T> Sync for TotalOrdWrap<T>where
T: Sync,
impl<T> Unpin for TotalOrdWrap<T>where
T: Unpin,
impl<T> UnsafeUnpin for TotalOrdWrap<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TotalOrdWrap<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<I, T> TransparentWrapperAlloc<I> for T
impl<I, T> TransparentWrapperAlloc<I> for T
§fn wrap_vec(s: Vec<Inner>) -> Vec<Self>
fn wrap_vec(s: Vec<Inner>) -> Vec<Self>
Convert a vec of the inner type into a vec of the wrapper type.
§fn wrap_box(s: Box<Inner>) -> Box<Self>
fn wrap_box(s: Box<Inner>) -> Box<Self>
Convert a box to the inner type into a box to the wrapper
type.
§fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
Convert an
Rc to the inner type into an Rc to the wrapper type.§fn wrap_arc(s: Arc<Inner>) -> Arc<Self> ⓘ
fn wrap_arc(s: Arc<Inner>) -> Arc<Self> ⓘ
Available on
target_has_atomic=ptr only.Convert an
Arc to the inner type into an Arc to the wrapper type.§fn peel_vec(s: Vec<Self>) -> Vec<Inner>
fn peel_vec(s: Vec<Self>) -> Vec<Inner>
Convert a vec of the wrapper type into a vec of the inner type.
§fn peel_box(s: Box<Self>) -> Box<Inner>
fn peel_box(s: Box<Self>) -> Box<Inner>
Convert a box to the wrapper type into a box to the inner
type.