pub enum TypeConsistencyKind {
DisallowTypeCoercion,
AllowTypeCoercion,
}Expand description
TypeConsistencyKind (7.6.3.4.1).
Variants§
DisallowTypeCoercion
DISALLOW_TYPE_COERCION: the reader’s and the writer’s types must
be the same.
AllowTypeCoercion
ALLOW_TYPE_COERCION, the default: the reader’s type must be
assignable from the writer’s.
Trait Implementations§
Source§impl Clone for TypeConsistencyKind
impl Clone for TypeConsistencyKind
Source§fn clone(&self) -> TypeConsistencyKind
fn clone(&self) -> TypeConsistencyKind
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 TypeConsistencyKind
Source§impl Debug for TypeConsistencyKind
impl Debug for TypeConsistencyKind
Source§impl Default for TypeConsistencyKind
impl Default for TypeConsistencyKind
Source§fn default() -> TypeConsistencyKind
fn default() -> TypeConsistencyKind
Returns the “default value” for a type. Read more
impl Eq for TypeConsistencyKind
Source§impl Hash for TypeConsistencyKind
impl Hash for TypeConsistencyKind
Source§impl PartialEq for TypeConsistencyKind
impl PartialEq for TypeConsistencyKind
impl StructuralPartialEq for TypeConsistencyKind
Auto Trait Implementations§
impl Forget for TypeConsistencyKind
impl Freeze for TypeConsistencyKind
impl Move for TypeConsistencyKind
impl RefUnwindSafe for TypeConsistencyKind
impl Send for TypeConsistencyKind
impl Sync for TypeConsistencyKind
impl Unpin for TypeConsistencyKind
impl UnsafeUnpin for TypeConsistencyKind
impl UnwindSafe for TypeConsistencyKind
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