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