Enum bson::spec::BinarySubtype
source · [−]#[non_exhaustive]
pub enum BinarySubtype {
Generic,
Function,
BinaryOld,
UuidOld,
Uuid,
Md5,
Encrypted,
Column,
UserDefined(u8),
Reserved(u8),
}
Expand description
The available binary subtypes, plus a user-defined slot.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic
Function
BinaryOld
UuidOld
Uuid
Md5
Encrypted
Column
UserDefined(u8)
Reserved(u8)
Trait Implementations
sourceimpl Clone for BinarySubtype
impl Clone for BinarySubtype
sourcefn clone(&self) -> BinarySubtype
fn clone(&self) -> BinarySubtype
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 Debug for BinarySubtype
impl Debug for BinarySubtype
sourceimpl From<BinarySubtype> for u8
impl From<BinarySubtype> for u8
sourcefn from(t: BinarySubtype) -> u8
fn from(t: BinarySubtype) -> u8
Converts to this type from the input type.
sourceimpl From<u8> for BinarySubtype
impl From<u8> for BinarySubtype
sourcefn from(t: u8) -> BinarySubtype
fn from(t: u8) -> BinarySubtype
Converts to this type from the input type.
sourceimpl Hash for BinarySubtype
impl Hash for BinarySubtype
sourceimpl PartialEq<BinarySubtype> for BinarySubtype
impl PartialEq<BinarySubtype> for BinarySubtype
sourcefn eq(&self, other: &BinarySubtype) -> bool
fn eq(&self, other: &BinarySubtype) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BinarySubtype) -> bool
fn ne(&self, other: &BinarySubtype) -> bool
This method tests for !=
.
impl Copy for BinarySubtype
impl Eq for BinarySubtype
impl StructuralEq for BinarySubtype
impl StructuralPartialEq for BinarySubtype
Auto Trait Implementations
impl RefUnwindSafe for BinarySubtype
impl Send for BinarySubtype
impl Sync for BinarySubtype
impl Unpin for BinarySubtype
impl UnwindSafe for BinarySubtype
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more