pub enum CoalesceError {
LeftNotOption(Ty),
Mismatch {
element: Ty,
fallback: Ty,
},
}Expand description
Why an coalesce application is ill-typed (NS-A1, F19).
Variants§
LeftNotOption(Ty)
The left operand is a concrete non-Option type — coalescing is only
defined over an optional left-hand side (Option<T> or …).
Mismatch
The element/right types are structurally irreconcilable
(Option<int> or "text" — the join of int and string is
Conflicted).
Trait Implementations§
Source§impl Clone for CoalesceError
impl Clone for CoalesceError
Source§fn clone(&self) -> CoalesceError
fn clone(&self) -> CoalesceError
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 CoalesceError
impl Debug for CoalesceError
impl Eq for CoalesceError
Source§impl PartialEq for CoalesceError
impl PartialEq for CoalesceError
impl StructuralPartialEq for CoalesceError
Auto Trait Implementations§
impl Freeze for CoalesceError
impl RefUnwindSafe for CoalesceError
impl Send for CoalesceError
impl Sync for CoalesceError
impl Unpin for CoalesceError
impl UnsafeUnpin for CoalesceError
impl UnwindSafe for CoalesceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.