pub enum PreferredType {
String,
Number,
Default,
}
Expand description
The preffered type to convert an object to a primitive Value
.
Variants§
Trait Implementations§
Source§impl Clone for PreferredType
impl Clone for PreferredType
Source§fn clone(&self) -> PreferredType
fn clone(&self) -> PreferredType
Returns a duplicate 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 PreferredType
impl Debug for PreferredType
Source§impl Hash for PreferredType
impl Hash for PreferredType
Source§impl Ord for PreferredType
impl Ord for PreferredType
Source§fn cmp(&self, other: &PreferredType) -> Ordering
fn cmp(&self, other: &PreferredType) -> Ordering
1.21.0 · 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 PartialEq for PreferredType
impl PartialEq for PreferredType
Source§impl PartialOrd for PreferredType
impl PartialOrd for PreferredType
impl Copy for PreferredType
impl Eq for PreferredType
impl StructuralPartialEq for PreferredType
Auto Trait Implementations§
impl Freeze for PreferredType
impl RefUnwindSafe for PreferredType
impl Send for PreferredType
impl Sync for PreferredType
impl Unpin for PreferredType
impl UnwindSafe for PreferredType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.