pub enum ComponentNameError {
Empty,
Invalid,
UnknownKind,
}Expand description
Error returned when Component Model names are invalid.
Variants§
Empty
The supplied value was empty.
Invalid
The supplied value does not match this crate’s conservative name rules.
UnknownKind
The supplied item kind label was not recognized.
Trait Implementations§
Source§impl Clone for ComponentNameError
impl Clone for ComponentNameError
Source§fn clone(&self) -> ComponentNameError
fn clone(&self) -> ComponentNameError
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 ComponentNameError
impl Debug for ComponentNameError
Source§impl Display for ComponentNameError
impl Display for ComponentNameError
Source§impl Error for ComponentNameError
impl Error for ComponentNameError
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 Hash for ComponentNameError
impl Hash for ComponentNameError
Source§impl Ord for ComponentNameError
impl Ord for ComponentNameError
Source§fn cmp(&self, other: &ComponentNameError) -> Ordering
fn cmp(&self, other: &ComponentNameError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComponentNameError
impl PartialEq for ComponentNameError
Source§fn eq(&self, other: &ComponentNameError) -> bool
fn eq(&self, other: &ComponentNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ComponentNameError
impl PartialOrd for ComponentNameError
impl Copy for ComponentNameError
impl Eq for ComponentNameError
impl StructuralPartialEq for ComponentNameError
Auto Trait Implementations§
impl Freeze for ComponentNameError
impl RefUnwindSafe for ComponentNameError
impl Send for ComponentNameError
impl Sync for ComponentNameError
impl Unpin for ComponentNameError
impl UnsafeUnpin for ComponentNameError
impl UnwindSafe for ComponentNameError
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