pub struct LitDecoratorName(/* private fields */);Expand description
Validated Lit decorator name metadata.
Implementations§
Source§impl LitDecoratorName
impl LitDecoratorName
Sourcepub fn new(input: &str) -> Result<Self, LitNameError>
pub fn new(input: &str) -> Result<Self, LitNameError>
Creates Lit decorator name metadata.
§Errors
Returns LitNameError when input is empty, contains whitespace, or has unsupported characters.
Trait Implementations§
Source§impl Clone for LitDecoratorName
impl Clone for LitDecoratorName
Source§fn clone(&self) -> LitDecoratorName
fn clone(&self) -> LitDecoratorName
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 LitDecoratorName
impl Debug for LitDecoratorName
Source§impl Display for LitDecoratorName
impl Display for LitDecoratorName
Source§impl FromStr for LitDecoratorName
impl FromStr for LitDecoratorName
Source§impl Hash for LitDecoratorName
impl Hash for LitDecoratorName
Source§impl Ord for LitDecoratorName
impl Ord for LitDecoratorName
Source§fn cmp(&self, other: &LitDecoratorName) -> Ordering
fn cmp(&self, other: &LitDecoratorName) -> 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 LitDecoratorName
impl PartialEq for LitDecoratorName
Source§fn eq(&self, other: &LitDecoratorName) -> bool
fn eq(&self, other: &LitDecoratorName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LitDecoratorName
impl PartialOrd for LitDecoratorName
Source§impl TryFrom<&str> for LitDecoratorName
impl TryFrom<&str> for LitDecoratorName
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