Struct QwikComponentName
pub struct QwikComponentName(/* private fields */);Expand description
Validated Qwik component name metadata.
Implementations§
§impl QwikComponentName
impl QwikComponentName
pub fn new(input: &str) -> Result<QwikComponentName, QwikNameError>
pub fn new(input: &str) -> Result<QwikComponentName, QwikNameError>
Creates a PascalCase ASCII Qwik component name.
§Errors
Returns QwikNameError when input is not an ASCII identifier or is not PascalCase-shaped.
Trait Implementations§
§impl Clone for QwikComponentName
impl Clone for QwikComponentName
§fn clone(&self) -> QwikComponentName
fn clone(&self) -> QwikComponentName
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 more§impl Debug for QwikComponentName
impl Debug for QwikComponentName
§impl Display for QwikComponentName
impl Display for QwikComponentName
§impl FromStr for QwikComponentName
impl FromStr for QwikComponentName
§type Err = QwikNameError
type Err = QwikNameError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<QwikComponentName, <QwikComponentName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<QwikComponentName, <QwikComponentName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for QwikComponentName
impl Hash for QwikComponentName
§impl Ord for QwikComponentName
impl Ord for QwikComponentName
§fn cmp(&self, other: &QwikComponentName) -> Ordering
fn cmp(&self, other: &QwikComponentName) -> 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
§impl PartialEq for QwikComponentName
impl PartialEq for QwikComponentName
§impl PartialOrd for QwikComponentName
impl PartialOrd for QwikComponentName
§impl TryFrom<&str> for QwikComponentName
impl TryFrom<&str> for QwikComponentName
§type Error = QwikNameError
type Error = QwikNameError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<QwikComponentName, <QwikComponentName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<QwikComponentName, <QwikComponentName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for QwikComponentName
impl StructuralPartialEq for QwikComponentName
Auto Trait Implementations§
impl Freeze for QwikComponentName
impl RefUnwindSafe for QwikComponentName
impl Send for QwikComponentName
impl Sync for QwikComponentName
impl Unpin for QwikComponentName
impl UnsafeUnpin for QwikComponentName
impl UnwindSafe for QwikComponentName
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