Enum type_protocol::UniversalType
source · #[non_exhaustive]pub enum UniversalType {
Bool,
USize,
ISize,
Int(NonZeroUsize),
UInt(NonZeroUsize),
Float(NonZeroUsize),
Char,
String,
}
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.
Trait Implementations§
source§impl Clone for UniversalType
impl Clone for UniversalType
source§fn clone(&self) -> UniversalType
fn clone(&self) -> UniversalType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniversalType
impl Debug for UniversalType
source§impl Display for UniversalType
impl Display for UniversalType
source§impl FromStr for UniversalType
impl FromStr for UniversalType
source§impl Hash for UniversalType
impl Hash for UniversalType
source§impl PartialEq<UniversalType> for UniversalType
impl PartialEq<UniversalType> for UniversalType
source§fn eq(&self, other: &UniversalType) -> bool
fn eq(&self, other: &UniversalType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UniversalType
impl StructuralEq for UniversalType
impl StructuralPartialEq for UniversalType
Auto Trait Implementations§
impl RefUnwindSafe for UniversalType
impl Send for UniversalType
impl Sync for UniversalType
impl Unpin for UniversalType
impl UnwindSafe for UniversalType
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