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