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