pub struct VitePluginName(/* private fields */);Implementations§
Source§impl VitePluginName
impl VitePluginName
Sourcepub fn new(input: &str) -> Result<VitePluginName, ViteTextError>
pub fn new(input: &str) -> Result<VitePluginName, ViteTextError>
Creates non-empty Vite text metadata.
§Errors
Returns ViteTextError::Empty when input is empty after trimming.
Trait Implementations§
Source§impl Clone for VitePluginName
impl Clone for VitePluginName
Source§fn clone(&self) -> VitePluginName
fn clone(&self) -> VitePluginName
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 VitePluginName
impl Debug for VitePluginName
Source§impl Hash for VitePluginName
impl Hash for VitePluginName
Source§impl Ord for VitePluginName
impl Ord for VitePluginName
Source§fn cmp(&self, other: &VitePluginName) -> Ordering
fn cmp(&self, other: &VitePluginName) -> 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 VitePluginName
impl PartialEq for VitePluginName
Source§fn eq(&self, other: &VitePluginName) -> bool
fn eq(&self, other: &VitePluginName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VitePluginName
impl PartialOrd for VitePluginName
impl Eq for VitePluginName
impl StructuralPartialEq for VitePluginName
Auto Trait Implementations§
impl Freeze for VitePluginName
impl RefUnwindSafe for VitePluginName
impl Send for VitePluginName
impl Sync for VitePluginName
impl Unpin for VitePluginName
impl UnsafeUnpin for VitePluginName
impl UnwindSafe for VitePluginName
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