pub enum TypeMatchResult {
Matches,
Incompatible {
reason: &'static str,
},
}Expand description
Result of a type match. Identical in semantics to Assignable,
but a standalone type for the matcher API (so the
call site is not coupled to the internal Assignable).
Variants§
Matches
Writer type and reader type are compatible for a match.
Incompatible
Incompatible — static reason.
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
impl Eq 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 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