pub struct QwikComponentName(/* private fields */);Expand description
Validated Qwik component name metadata.
Implementations§
Source§impl QwikComponentName
impl QwikComponentName
Sourcepub 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§
Source§impl Clone for QwikComponentName
impl Clone for QwikComponentName
Source§fn clone(&self) -> QwikComponentName
fn clone(&self) -> QwikComponentName
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 QwikComponentName
impl Debug for QwikComponentName
Source§impl Display for QwikComponentName
impl Display for QwikComponentName
Source§impl FromStr for QwikComponentName
impl FromStr for QwikComponentName
Source§type Err = QwikNameError
type Err = QwikNameError
The associated error which can be returned from parsing.
Source§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 moreSource§impl Hash for QwikComponentName
impl Hash for QwikComponentName
Source§impl Ord for QwikComponentName
impl Ord for QwikComponentName
Source§fn cmp(&self, other: &QwikComponentName) -> Ordering
fn cmp(&self, other: &QwikComponentName) -> 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 QwikComponentName
impl PartialEq for QwikComponentName
Source§fn eq(&self, other: &QwikComponentName) -> bool
fn eq(&self, other: &QwikComponentName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for QwikComponentName
impl PartialOrd for QwikComponentName
Source§impl TryFrom<&str> for QwikComponentName
impl TryFrom<&str> for QwikComponentName
Source§type Error = QwikNameError
type Error = QwikNameError
The type returned in the event of a conversion error.
Source§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