#[non_exhaustive]pub enum Serialization {
Received,
Preferred,
}Expand description
Serialization checks are independent of map ordering.
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.
Received
Preserve received widths without requiring shortest encodings.
Preferred
Require shortest arguments and shortest exact floating-point encodings.
Trait Implementations§
Source§impl Clone for Serialization
impl Clone for Serialization
Source§fn clone(&self) -> Serialization
fn clone(&self) -> Serialization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Serialization
Source§impl Debug for Serialization
impl Debug for Serialization
impl Eq for Serialization
Source§impl PartialEq for Serialization
impl PartialEq for Serialization
impl StructuralPartialEq for Serialization
Auto Trait Implementations§
impl Forget for Serialization
impl Freeze for Serialization
impl Move for Serialization
impl RefUnwindSafe for Serialization
impl Send for Serialization
impl Sync for Serialization
impl Unpin for Serialization
impl UnsafeUnpin for Serialization
impl UnwindSafe for Serialization
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