Struct VueComponentName
pub struct VueComponentName(/* private fields */);Expand description
Validated Vue component name metadata.
Implementations§
§impl VueComponentName
impl VueComponentName
pub 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§
§impl Clone for VueComponentName
impl Clone for VueComponentName
§fn clone(&self) -> VueComponentName
fn clone(&self) -> VueComponentName
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 VueComponentName
impl Debug for VueComponentName
§impl Hash for VueComponentName
impl Hash for VueComponentName
§impl Ord for VueComponentName
impl Ord for VueComponentName
§fn cmp(&self, other: &VueComponentName) -> Ordering
fn cmp(&self, other: &VueComponentName) -> 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 VueComponentName
impl PartialEq for VueComponentName
§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