pub enum TypeMatchResult {
Matches,
Incompatible {
reason: &'static str,
},
}Expand description
Ergebnis eines Type-Matches. Identisch in Semantik zu Assignable,
aber ein eigenstaendiger Typ fuer die Matcher-API (so wird der
Call-Site nicht an das interne Assignable gekoppelt).
Variants§
Matches
Writer-Type und Reader-Type sind fuer ein Match kompatibel.
Incompatible
Inkompatibel — statische Begruendung.
Implementations§
Trait Implementations§
Source§impl Clone for TypeMatchResult
impl Clone for TypeMatchResult
Source§fn clone(&self) -> TypeMatchResult
fn clone(&self) -> TypeMatchResult
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 TypeMatchResult
impl Debug for TypeMatchResult
Source§impl PartialEq for TypeMatchResult
impl PartialEq for TypeMatchResult
Source§fn eq(&self, other: &TypeMatchResult) -> bool
fn eq(&self, other: &TypeMatchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TypeMatchResult
impl StructuralPartialEq for TypeMatchResult
Auto Trait Implementations§
impl Freeze for TypeMatchResult
impl RefUnwindSafe for TypeMatchResult
impl Send for TypeMatchResult
impl Sync for TypeMatchResult
impl Unpin for TypeMatchResult
impl UnsafeUnpin for TypeMatchResult
impl UnwindSafe for TypeMatchResult
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