pub struct DrupalModuleName(/* private fields */);Implementations§
Source§impl DrupalModuleName
impl DrupalModuleName
pub fn new(input: &str) -> Result<DrupalModuleName, DrupalError>
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for DrupalModuleName
impl Clone for DrupalModuleName
Source§fn clone(&self) -> DrupalModuleName
fn clone(&self) -> DrupalModuleName
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 DrupalModuleName
impl Debug for DrupalModuleName
Source§impl Display for DrupalModuleName
impl Display for DrupalModuleName
Source§impl FromStr for DrupalModuleName
impl FromStr for DrupalModuleName
Source§type Err = DrupalError
type Err = DrupalError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<DrupalModuleName, <DrupalModuleName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<DrupalModuleName, <DrupalModuleName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DrupalModuleName
impl Hash for DrupalModuleName
Source§impl Ord for DrupalModuleName
impl Ord for DrupalModuleName
Source§fn cmp(&self, other: &DrupalModuleName) -> Ordering
fn cmp(&self, other: &DrupalModuleName) -> 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 DrupalModuleName
impl PartialEq for DrupalModuleName
Source§fn eq(&self, other: &DrupalModuleName) -> bool
fn eq(&self, other: &DrupalModuleName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DrupalModuleName
impl PartialOrd for DrupalModuleName
impl Eq for DrupalModuleName
impl StructuralPartialEq for DrupalModuleName
Auto Trait Implementations§
impl Freeze for DrupalModuleName
impl RefUnwindSafe for DrupalModuleName
impl Send for DrupalModuleName
impl Sync for DrupalModuleName
impl Unpin for DrupalModuleName
impl UnsafeUnpin for DrupalModuleName
impl UnwindSafe for DrupalModuleName
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