Struct microkelvin::Cardinality
source · [−]pub struct Cardinality(_);
Expand description
The cardinality of a compound collection
Trait Implementations
sourceimpl<L> Annotation<L> for Cardinality
impl<L> Annotation<L> for Cardinality
sourceimpl Archive for Cardinality where
LittleEndian<u64>: Archive,
impl Archive for Cardinality where
LittleEndian<u64>: Archive,
type Archived = Cardinality
type Archived = Cardinality
The archived representation of this type. Read more
sourceimpl<__C: ?Sized> CheckBytes<__C> for Cardinality where
LittleEndian<u64>: CheckBytes<__C>,
impl<__C: ?Sized> CheckBytes<__C> for Cardinality where
LittleEndian<u64>: CheckBytes<__C>,
type Error = TupleStructCheckError
type Error = TupleStructCheckError
The error that may result from checking the type.
sourceunsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
sourceimpl Clone for Cardinality
impl Clone for Cardinality
sourcefn clone(&self) -> Cardinality
fn clone(&self) -> Cardinality
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<A> Combine<A> for Cardinality where
A: Borrow<Self>,
impl<A> Combine<A> for Cardinality where
A: Borrow<Self>,
sourceimpl Debug for Cardinality
impl Debug for Cardinality
sourceimpl Default for Cardinality
impl Default for Cardinality
sourcefn default() -> Cardinality
fn default() -> Cardinality
Returns the “default value” for a type. Read more
sourceimpl<__D: Fallible + ?Sized> Deserialize<Cardinality, __D> for Archived<Cardinality> where
LittleEndian<u64>: Archive,
Archived<LittleEndian<u64>>: Deserialize<LittleEndian<u64>, __D>,
impl<__D: Fallible + ?Sized> Deserialize<Cardinality, __D> for Archived<Cardinality> where
LittleEndian<u64>: Archive,
Archived<LittleEndian<u64>>: Deserialize<LittleEndian<u64>, __D>,
sourcefn deserialize(&self, deserializer: &mut __D) -> Result<Cardinality, __D::Error>
fn deserialize(&self, deserializer: &mut __D) -> Result<Cardinality, __D::Error>
Deserializes using the given deserializer
sourceimpl<'a> From<&'a Cardinality> for u64
impl<'a> From<&'a Cardinality> for u64
sourcefn from(c: &'a Cardinality) -> Self
fn from(c: &'a Cardinality) -> Self
Converts to this type from the input type.
sourceimpl From<Cardinality> for u64
impl From<Cardinality> for u64
sourcefn from(c: Cardinality) -> Self
fn from(c: Cardinality) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Cardinality> for Cardinality
impl PartialEq<Cardinality> for Cardinality
sourcefn eq(&self, other: &Cardinality) -> bool
fn eq(&self, other: &Cardinality) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Cardinality) -> bool
fn ne(&self, other: &Cardinality) -> bool
This method tests for !=
.
sourceimpl<__S: Fallible + ?Sized> Serialize<__S> for Cardinality where
LittleEndian<u64>: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for Cardinality where
LittleEndian<u64>: Serialize<__S>,
impl Copy for Cardinality
impl StructuralPartialEq for Cardinality
Auto Trait Implementations
impl RefUnwindSafe for Cardinality
impl Send for Cardinality
impl Sync for Cardinality
impl Unpin for Cardinality
impl UnwindSafe for Cardinality
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn 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.
sourceimpl<T> ArchiveUnsized for T where
T: Archive,
impl<T> ArchiveUnsized for T where
T: Archive,
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 more
type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
sourceunsafe 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
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
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more