Struct SolidComponentName
pub struct SolidComponentName(/* private fields */);Expand description
Validated SolidJS component name metadata.
Implementations§
§impl SolidComponentName
impl SolidComponentName
pub 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§
§impl Clone for SolidComponentName
impl Clone for SolidComponentName
§fn clone(&self) -> SolidComponentName
fn clone(&self) -> SolidComponentName
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 SolidComponentName
impl Debug for SolidComponentName
§impl Display for SolidComponentName
impl Display for SolidComponentName
§impl FromStr for SolidComponentName
impl FromStr for SolidComponentName
§type Err = SolidNameError
type Err = SolidNameError
The associated error which can be returned from parsing.
§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 more§impl Hash for SolidComponentName
impl Hash for SolidComponentName
§impl Ord for SolidComponentName
impl Ord for SolidComponentName
§fn cmp(&self, other: &SolidComponentName) -> Ordering
fn cmp(&self, other: &SolidComponentName) -> 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 SolidComponentName
impl PartialEq for SolidComponentName
§impl PartialOrd for SolidComponentName
impl PartialOrd for SolidComponentName
§impl TryFrom<&str> for SolidComponentName
impl TryFrom<&str> for SolidComponentName
§type Error = SolidNameError
type Error = SolidNameError
The type returned in the event of a conversion error.
§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