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