Struct JqueryPluginName
pub struct JqueryPluginName(/* private fields */);Expand description
Validated jQuery plugin name metadata.
Implementations§
§impl JqueryPluginName
impl JqueryPluginName
pub 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§
§impl Clone for JqueryPluginName
impl Clone for JqueryPluginName
§fn clone(&self) -> JqueryPluginName
fn clone(&self) -> JqueryPluginName
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 JqueryPluginName
impl Debug for JqueryPluginName
§impl Display for JqueryPluginName
impl Display for JqueryPluginName
§impl FromStr for JqueryPluginName
impl FromStr for JqueryPluginName
§type Err = JqueryTextError
type Err = JqueryTextError
The associated error which can be returned from parsing.
§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 more§impl Hash for JqueryPluginName
impl Hash for JqueryPluginName
§impl Ord for JqueryPluginName
impl Ord for JqueryPluginName
§fn cmp(&self, other: &JqueryPluginName) -> Ordering
fn cmp(&self, other: &JqueryPluginName) -> 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 JqueryPluginName
impl PartialEq for JqueryPluginName
§impl PartialOrd for JqueryPluginName
impl PartialOrd for JqueryPluginName
§impl TryFrom<&str> for JqueryPluginName
impl TryFrom<&str> for JqueryPluginName
§type Error = JqueryTextError
type Error = JqueryTextError
The type returned in the event of a conversion error.
§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