pub struct WithCustomOrd<T, F> {
pub val: T,
/* private fields */
}Expand description
Wrapper around type T that uses F instead of
Ord::cmp to compare values.
Fields§
§val: TImplementations§
Trait Implementations§
Source§impl<T, F> Archive for WithCustomOrd<T, F>
impl<T, F> Archive for WithCustomOrd<T, F>
Source§impl<T, F> Clone for WithCustomOrd<T, F>where
T: Clone,
impl<T, F> Clone for WithCustomOrd<T, F>where
T: Clone,
Source§impl<T, F> Debug for WithCustomOrd<T, F>where
T: Debug,
impl<T, F> Debug for WithCustomOrd<T, F>where
T: Debug,
Source§impl<T: Default, F> Default for WithCustomOrd<T, F>
impl<T: Default, F> Default for WithCustomOrd<T, F>
Source§impl<__D: Fallible + ?Sized, T, F> Deserialize<WithCustomOrd<T, F>, __D> for Archived<WithCustomOrd<T, F>>where
T: Archive,
Archived<T>: Deserialize<T, __D>,
PhantomData<F>: Archive,
Archived<PhantomData<F>>: Deserialize<PhantomData<F>, __D>,
impl<__D: Fallible + ?Sized, T, F> Deserialize<WithCustomOrd<T, F>, __D> for Archived<WithCustomOrd<T, F>>where
T: Archive,
Archived<T>: Deserialize<T, __D>,
PhantomData<F>: Archive,
Archived<PhantomData<F>>: Deserialize<PhantomData<F>, __D>,
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<WithCustomOrd<T, F>, __D::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<WithCustomOrd<T, F>, __D::Error>
Deserializes using the given deserializer
impl<T, F> Eq for WithCustomOrd<T, F>where
T: PartialEq,
Source§impl<T, F> Hash for WithCustomOrd<T, F>where
T: Hash,
impl<T, F> Hash for WithCustomOrd<T, F>where
T: Hash,
Source§impl<T, F> IsNone for WithCustomOrd<T, F>
impl<T, F> IsNone for WithCustomOrd<T, F>
Source§impl<T, F> Ord for WithCustomOrd<T, F>
impl<T, F> Ord for WithCustomOrd<T, F>
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
Source§impl<T, F> PartialEq for WithCustomOrd<T, F>where
T: PartialEq,
impl<T, F> PartialEq for WithCustomOrd<T, F>where
T: PartialEq,
Source§impl<T, F> PartialOrd for WithCustomOrd<T, F>
impl<T, F> PartialOrd for WithCustomOrd<T, F>
Source§impl<T, F> SizeOf for WithCustomOrd<T, F>
impl<T, F> SizeOf for WithCustomOrd<T, F>
Source§fn size_of_children(&self, context: &mut Context)
fn size_of_children(&self, context: &mut Context)
Gets the size of all “children” owned by this value, not including the
size of the value itself. Read more
Source§fn size_of_with_context(&self, context: &mut Context)
fn size_of_with_context(&self, context: &mut Context)
Adds the size of the current value to the given
Context,
including both the size of the value itself and all of its childrenSource§impl<T, F> SupportsRoaring for WithCustomOrd<T, F>
impl<T, F> SupportsRoaring for WithCustomOrd<T, F>
Source§fn supports_roaring32(&self) -> bool
fn supports_roaring32(&self) -> bool
Returns
true if this key type can be represented in a 32-bit roaring
bitmap.Source§fn roaring_u32_offset_dyn_checked(&self, min: &DynData) -> u32
fn roaring_u32_offset_dyn_checked(&self, min: &DynData) -> u32
Like
roaring_u32_offset_dyn, but
panics when the offset cannot be computed.Auto Trait Implementations§
impl<T, F> Freeze for WithCustomOrd<T, F>where
T: Freeze,
impl<T, F> RefUnwindSafe for WithCustomOrd<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for WithCustomOrd<T, F>
impl<T, F> Sync for WithCustomOrd<T, F>
impl<T, F> Unpin for WithCustomOrd<T, F>
impl<T, F> UnsafeUnpin for WithCustomOrd<T, F>where
T: UnsafeUnpin,
impl<T, F> UnwindSafe for WithCustomOrd<T, F>where
T: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
Source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Comparable for T
impl<T> Comparable for T
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DBData for Twhere
T: Default + Clone + Eq + Ord + Hash + SizeOf + Send + Sync + Debug + ArchivedDBData + IsNone + SupportsRoaring + 'static,
<T as IsNone>::Inner: ArchivedDBData,
Source§impl<T> Data for Twhere
T: DBData,
impl<T> Data for Twhere
T: DBData,
Source§fn default_hash(&self) -> u64
fn default_hash(&self) -> u64
Compute a hash of the object using default hasher and seed.
fn dyn_hash(&self, hasher: &mut dyn Hasher)
Source§fn as_data(&self) -> &(dyn Data + 'static)
fn as_data(&self) -> &(dyn Data + 'static)
Cast any type that implements this trait to
&dyn Data. Read moreSource§fn as_data_mut(&mut self) -> &mut (dyn Data + 'static)
fn as_data_mut(&mut self) -> &mut (dyn Data + 'static)
Cast any type that implements this trait to
&mut dyn Data. Read moreimpl<T> Data for Twhere
T: Clone + 'static,
Source§impl<T> DeserializableDyn for Twhere
T: ArchivedDBData,
impl<T> DeserializableDyn for Twhere
T: ArchivedDBData,
Source§unsafe fn deserialize_from_bytes_with(
&mut self,
bytes: &[u8],
pos: usize,
deserializer: &mut Deserializer,
)
unsafe fn deserialize_from_bytes_with( &mut self, bytes: &[u8], pos: usize, deserializer: &mut Deserializer, )
Deserialize
self from the given slice and offset. Read moreSource§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<V> Erase<dyn Data> for V
impl<V> Erase<dyn Data> for V
Source§fn erase(&self) -> &(dyn Data + 'static)
fn erase(&self) -> &(dyn Data + 'static)
Convert a reference to
self into a reference to Trait.Source§fn erase_mut(&mut self) -> &mut (dyn Data + 'static)
fn erase_mut(&mut self) -> &mut (dyn Data + 'static)
Convert a mutable reference to
self into a mutable reference to Trait.Source§fn erase_archived(
archived: &<V as Archive>::Archived,
) -> &<dyn Data as ArchiveTrait>::Archived
fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn Data as ArchiveTrait>::Archived
Convert a reference to an archived representation of
Self into a reference
to a trait object of type Trait::Archived.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.