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