pub struct VueComponentName(/* private fields */);Expand description
Validated Vue component name metadata.
Implementations§
Source§impl VueComponentName
impl VueComponentName
Sourcepub fn new(input: &str) -> Result<VueComponentName, VueNameError>
pub fn new(input: &str) -> Result<VueComponentName, VueNameError>
Creates a lightly validated Vue component name.
§Errors
Returns VueNameError when input is empty, whitespace-bearing, or not component-shaped.
Trait Implementations§
Source§impl Clone for VueComponentName
impl Clone for VueComponentName
Source§fn clone(&self) -> VueComponentName
fn clone(&self) -> VueComponentName
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 VueComponentName
impl Debug for VueComponentName
Source§impl Hash for VueComponentName
impl Hash for VueComponentName
Source§impl Ord for VueComponentName
impl Ord for VueComponentName
Source§fn cmp(&self, other: &VueComponentName) -> Ordering
fn cmp(&self, other: &VueComponentName) -> 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 VueComponentName
impl PartialEq for VueComponentName
Source§fn eq(&self, other: &VueComponentName) -> bool
fn eq(&self, other: &VueComponentName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VueComponentName
impl PartialOrd for VueComponentName
impl Eq for VueComponentName
impl StructuralPartialEq for VueComponentName
Auto Trait Implementations§
impl Freeze for VueComponentName
impl RefUnwindSafe for VueComponentName
impl Send for VueComponentName
impl Sync for VueComponentName
impl Unpin for VueComponentName
impl UnsafeUnpin for VueComponentName
impl UnwindSafe for VueComponentName
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