pub struct LitPropertyName(/* private fields */);Expand description
Validated Lit property name metadata.
Implementations§
Source§impl LitPropertyName
impl LitPropertyName
Sourcepub fn new(input: &str) -> Result<Self, LitNameError>
pub fn new(input: &str) -> Result<Self, LitNameError>
Creates Lit property name metadata.
§Errors
Returns LitNameError when input is not an ASCII JavaScript identifier.
Trait Implementations§
Source§impl Clone for LitPropertyName
impl Clone for LitPropertyName
Source§fn clone(&self) -> LitPropertyName
fn clone(&self) -> LitPropertyName
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 LitPropertyName
impl Debug for LitPropertyName
Source§impl Display for LitPropertyName
impl Display for LitPropertyName
Source§impl FromStr for LitPropertyName
impl FromStr for LitPropertyName
Source§impl Hash for LitPropertyName
impl Hash for LitPropertyName
Source§impl Ord for LitPropertyName
impl Ord for LitPropertyName
Source§fn cmp(&self, other: &LitPropertyName) -> Ordering
fn cmp(&self, other: &LitPropertyName) -> 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 LitPropertyName
impl PartialEq for LitPropertyName
Source§fn eq(&self, other: &LitPropertyName) -> bool
fn eq(&self, other: &LitPropertyName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LitPropertyName
impl PartialOrd for LitPropertyName
Source§impl TryFrom<&str> for LitPropertyName
impl TryFrom<&str> for LitPropertyName
impl Eq for LitPropertyName
impl StructuralPartialEq for LitPropertyName
Auto Trait Implementations§
impl Freeze for LitPropertyName
impl RefUnwindSafe for LitPropertyName
impl Send for LitPropertyName
impl Sync for LitPropertyName
impl Unpin for LitPropertyName
impl UnsafeUnpin for LitPropertyName
impl UnwindSafe for LitPropertyName
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