pub struct SvelteDirectiveName(/* private fields */);Expand description
Validated Svelte directive name metadata.
Implementations§
Source§impl SvelteDirectiveName
impl SvelteDirectiveName
Sourcepub fn new(input: &str) -> Result<Self, SvelteNameError>
pub fn new(input: &str) -> Result<Self, SvelteNameError>
Creates a lightly validated Svelte directive name.
§Errors
Returns SvelteNameError when input is empty, contains whitespace, or has unsupported characters.
Trait Implementations§
Source§impl Clone for SvelteDirectiveName
impl Clone for SvelteDirectiveName
Source§fn clone(&self) -> SvelteDirectiveName
fn clone(&self) -> SvelteDirectiveName
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 moreSource§impl Debug for SvelteDirectiveName
impl Debug for SvelteDirectiveName
Source§impl Display for SvelteDirectiveName
impl Display for SvelteDirectiveName
Source§impl FromStr for SvelteDirectiveName
impl FromStr for SvelteDirectiveName
Source§impl Hash for SvelteDirectiveName
impl Hash for SvelteDirectiveName
Source§impl Ord for SvelteDirectiveName
impl Ord for SvelteDirectiveName
Source§fn cmp(&self, other: &SvelteDirectiveName) -> Ordering
fn cmp(&self, other: &SvelteDirectiveName) -> 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
Source§impl PartialEq for SvelteDirectiveName
impl PartialEq for SvelteDirectiveName
Source§impl PartialOrd for SvelteDirectiveName
impl PartialOrd for SvelteDirectiveName
Source§impl TryFrom<&str> for SvelteDirectiveName
impl TryFrom<&str> for SvelteDirectiveName
impl Eq for SvelteDirectiveName
impl StructuralPartialEq for SvelteDirectiveName
Auto Trait Implementations§
impl Freeze for SvelteDirectiveName
impl RefUnwindSafe for SvelteDirectiveName
impl Send for SvelteDirectiveName
impl Sync for SvelteDirectiveName
impl Unpin for SvelteDirectiveName
impl UnsafeUnpin for SvelteDirectiveName
impl UnwindSafe for SvelteDirectiveName
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