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