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