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