pub enum DeclareError {
BadPath {
path: String,
reason: &'static str,
},
Taken {
path: String,
by: OwnerId,
},
BadDefault {
path: String,
reason: String,
},
}Expand description
Why a path could not be declared.
Variants§
Trait Implementations§
Source§impl Clone for DeclareError
impl Clone for DeclareError
Source§fn clone(&self) -> DeclareError
fn clone(&self) -> DeclareError
Returns a duplicate 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 DeclareError
impl Debug for DeclareError
Source§impl Display for DeclareError
impl Display for DeclareError
Source§impl Error for DeclareError
impl Error for DeclareError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for DeclareError
impl PartialEq for DeclareError
impl Eq for DeclareError
impl StructuralPartialEq for DeclareError
Auto Trait Implementations§
impl Freeze for DeclareError
impl RefUnwindSafe for DeclareError
impl Send for DeclareError
impl Sync for DeclareError
impl Unpin for DeclareError
impl UnsafeUnpin for DeclareError
impl UnwindSafe for DeclareError
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