Enum ra_ap_hir::HirDisplayError
source · pub enum HirDisplayError {
DisplaySourceCodeError(DisplaySourceCodeError),
FmtError,
}
Variants§
DisplaySourceCodeError(DisplaySourceCodeError)
Errors that can occur when generating source code
FmtError
FmtError
is required to be compatible with std::fmt::Display
Trait Implementations§
source§impl From<Error> for HirDisplayError
impl From<Error> for HirDisplayError
source§fn from(_: Error) -> HirDisplayError
fn from(_: Error) -> HirDisplayError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HirDisplayError
impl RefUnwindSafe for HirDisplayError
impl Send for HirDisplayError
impl Sync for HirDisplayError
impl Unpin for HirDisplayError
impl UnwindSafe for HirDisplayError
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
.