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