pub enum TypeConsistencyKind {
DisallowTypeCoercion,
AllowTypeCoercion,
ForceTypeValidation,
}Expand description
Kind der TypeConsistencyEnforcement (§7.6.3.7).
Variants§
DisallowTypeCoercion
Kein Type-Check beim Matching.
AllowTypeCoercion
Type-Coercion (int16→int32 etc.) erlaubt.
ForceTypeValidation
Volle Type-Validation + Force alle Checks.
Implementations§
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 moreSource§impl Debug for TypeConsistencyKind
impl Debug for TypeConsistencyKind
Source§impl PartialEq for TypeConsistencyKind
impl PartialEq for TypeConsistencyKind
Source§fn eq(&self, other: &TypeConsistencyKind) -> bool
fn eq(&self, other: &TypeConsistencyKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TypeConsistencyKind
impl Eq for TypeConsistencyKind
impl StructuralPartialEq for TypeConsistencyKind
Auto Trait Implementations§
impl Freeze 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