pub struct JqueryPluginName(/* private fields */);Expand description
Validated jQuery plugin name metadata.
Implementations§
Source§impl JqueryPluginName
impl JqueryPluginName
Sourcepub fn new(input: &str) -> Result<JqueryPluginName, JqueryTextError>
pub fn new(input: &str) -> Result<JqueryPluginName, JqueryTextError>
Creates jQuery plugin name metadata.
§Errors
Returns JqueryTextError when input is empty, contains whitespace, or has unsupported characters.
Trait Implementations§
Source§impl Clone for JqueryPluginName
impl Clone for JqueryPluginName
Source§fn clone(&self) -> JqueryPluginName
fn clone(&self) -> JqueryPluginName
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 JqueryPluginName
impl Debug for JqueryPluginName
Source§impl Display for JqueryPluginName
impl Display for JqueryPluginName
Source§impl FromStr for JqueryPluginName
impl FromStr for JqueryPluginName
Source§type Err = JqueryTextError
type Err = JqueryTextError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<JqueryPluginName, <JqueryPluginName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<JqueryPluginName, <JqueryPluginName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for JqueryPluginName
impl Hash for JqueryPluginName
Source§impl Ord for JqueryPluginName
impl Ord for JqueryPluginName
Source§fn cmp(&self, other: &JqueryPluginName) -> Ordering
fn cmp(&self, other: &JqueryPluginName) -> 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 JqueryPluginName
impl PartialEq for JqueryPluginName
Source§fn eq(&self, other: &JqueryPluginName) -> bool
fn eq(&self, other: &JqueryPluginName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for JqueryPluginName
impl PartialOrd for JqueryPluginName
Source§impl TryFrom<&str> for JqueryPluginName
impl TryFrom<&str> for JqueryPluginName
Source§type Error = JqueryTextError
type Error = JqueryTextError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<JqueryPluginName, <JqueryPluginName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<JqueryPluginName, <JqueryPluginName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for JqueryPluginName
impl StructuralPartialEq for JqueryPluginName
Auto Trait Implementations§
impl Freeze for JqueryPluginName
impl RefUnwindSafe for JqueryPluginName
impl Send for JqueryPluginName
impl Sync for JqueryPluginName
impl Unpin for JqueryPluginName
impl UnsafeUnpin for JqueryPluginName
impl UnwindSafe for JqueryPluginName
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