pub struct InvalidComponentError;Expand description
An error arising from trying to construct a Component of length strictly greater than the MCL (max_component_length).
§Example
use willow_data_model::prelude::*;
assert_eq!(Component::<4>::new(b"too_long"), Err(InvalidComponentError));Trait Implementations§
Source§impl Clone for InvalidComponentError
impl Clone for InvalidComponentError
Source§fn clone(&self) -> InvalidComponentError
fn clone(&self) -> InvalidComponentError
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 InvalidComponentError
impl Debug for InvalidComponentError
Source§impl Display for InvalidComponentError
impl Display for InvalidComponentError
Source§impl Error for InvalidComponentError
impl Error for InvalidComponentError
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 From<InvalidComponentError> for PathError
impl From<InvalidComponentError> for PathError
Source§fn from(_value: InvalidComponentError) -> Self
fn from(_value: InvalidComponentError) -> Self
Converts to this type from the input type.
Source§impl Hash for InvalidComponentError
impl Hash for InvalidComponentError
Source§impl Ord for InvalidComponentError
impl Ord for InvalidComponentError
Source§fn cmp(&self, other: &InvalidComponentError) -> Ordering
fn cmp(&self, other: &InvalidComponentError) -> Ordering
1.21.0 · 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 InvalidComponentError
impl PartialEq for InvalidComponentError
Source§impl PartialOrd for InvalidComponentError
impl PartialOrd for InvalidComponentError
impl Copy for InvalidComponentError
impl Eq for InvalidComponentError
impl StructuralPartialEq for InvalidComponentError
Auto Trait Implementations§
impl Freeze for InvalidComponentError
impl RefUnwindSafe for InvalidComponentError
impl Send for InvalidComponentError
impl Sync for InvalidComponentError
impl Unpin for InvalidComponentError
impl UnwindSafe for InvalidComponentError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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