pub enum PreactNameError {
Identifier(JsIdentifierError),
NotPascalCase,
NotHookName,
Empty,
UnknownLabel,
}Expand description
Error returned when Preact metadata is invalid.
Variants§
Trait Implementations§
Source§impl Clone for PreactNameError
impl Clone for PreactNameError
Source§fn clone(&self) -> PreactNameError
fn clone(&self) -> PreactNameError
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 PreactNameError
impl Debug for PreactNameError
Source§impl Display for PreactNameError
impl Display for PreactNameError
Source§impl Error for PreactNameError
impl Error for PreactNameError
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 PreactNameError
impl PartialEq for PreactNameError
Source§fn eq(&self, other: &PreactNameError) -> bool
fn eq(&self, other: &PreactNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PreactNameError
impl StructuralPartialEq for PreactNameError
Auto Trait Implementations§
impl Freeze for PreactNameError
impl RefUnwindSafe for PreactNameError
impl Send for PreactNameError
impl Sync for PreactNameError
impl Unpin for PreactNameError
impl UnsafeUnpin for PreactNameError
impl UnwindSafe for PreactNameError
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