Struct chalk_integration::error::ChalkError
source · pub struct ChalkError {
error_text: String,
}
Expand description
Wrapper type for the various errors that can occur during chalk processing.
Fields§
§error_text: String
For now, we just convert the error into a string, which makes it trivially hashable etc.
Trait Implementations§
source§impl Clone for ChalkError
impl Clone for ChalkError
source§fn clone(&self) -> ChalkError
fn clone(&self) -> ChalkError
Returns a copy of the value. Read more
1.0.0 · 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 ChalkError
impl Debug for ChalkError
source§impl Display for ChalkError
impl Display for ChalkError
source§impl Error for ChalkError
impl Error for ChalkError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CoherenceError<ChalkIr>> for ChalkError
impl From<CoherenceError<ChalkIr>> for ChalkError
source§fn from(value: CoherenceError<ChalkIr>) -> Self
fn from(value: CoherenceError<ChalkIr>) -> Self
Converts to this type from the input type.
source§impl From<RustIrError> for ChalkError
impl From<RustIrError> for ChalkError
source§fn from(value: RustIrError) -> Self
fn from(value: RustIrError) -> Self
Converts to this type from the input type.
source§impl Hash for ChalkError
impl Hash for ChalkError
source§impl PartialEq for ChalkError
impl PartialEq for ChalkError
source§fn eq(&self, other: &ChalkError) -> bool
fn eq(&self, other: &ChalkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ChalkError
impl StructuralPartialEq for ChalkError
Auto Trait Implementations§
impl Freeze for ChalkError
impl RefUnwindSafe for ChalkError
impl Send for ChalkError
impl Sync for ChalkError
impl Unpin for ChalkError
impl UnwindSafe for ChalkError
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.