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