pub enum OpaqueReason {
CustomSerializer,
CustomDeserializer,
Unsupported,
Unobserved,
}Expand description
The reason a shape cannot be represented precisely.
Variants§
CustomSerializer
A custom serializer controls the output. Derive-generated detail is a parseable Rust path
token stream whose whitespace is not normalized.
CustomDeserializer
A custom deserializer controls the input. Derive-generated detail is a parseable Rust
path token stream whose whitespace is not normalized.
Unsupported
The type has no built-in shape implementation.
Unobserved
The surrounding representation contains no values of this type.
Trait Implementations§
Source§impl Clone for OpaqueReason
impl Clone for OpaqueReason
Source§fn clone(&self) -> OpaqueReason
fn clone(&self) -> OpaqueReason
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 OpaqueReason
Source§impl Debug for OpaqueReason
impl Debug for OpaqueReason
impl Eq for OpaqueReason
Source§impl Ord for OpaqueReason
impl Ord for OpaqueReason
Source§fn cmp(&self, other: &OpaqueReason) -> Ordering
fn cmp(&self, other: &OpaqueReason) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OpaqueReason
impl PartialEq for OpaqueReason
Source§impl PartialOrd for OpaqueReason
impl PartialOrd for OpaqueReason
impl StructuralPartialEq for OpaqueReason
Auto Trait Implementations§
impl Freeze for OpaqueReason
impl RefUnwindSafe for OpaqueReason
impl Send for OpaqueReason
impl Sync for OpaqueReason
impl Unpin for OpaqueReason
impl UnsafeUnpin for OpaqueReason
impl UnwindSafe for OpaqueReason
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