pub struct AlreadyDefined(/* private fields */);
Expand description
Error to be returned from APIs that should reject duplicate definitions
Implementations§
Source§impl AlreadyDefined
impl AlreadyDefined
pub fn new(voucher: DiagnosticVoucher) -> Self
Trait Implementations§
Source§impl Debug for AlreadyDefined
impl Debug for AlreadyDefined
Source§impl From<AlreadyDefined> for FatalError
impl From<AlreadyDefined> for FatalError
Source§fn from(err: AlreadyDefined) -> Self
fn from(err: AlreadyDefined) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AlreadyDefined
impl RefUnwindSafe for AlreadyDefined
impl Send for AlreadyDefined
impl Sync for AlreadyDefined
impl Unpin for AlreadyDefined
impl UnwindSafe for AlreadyDefined
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