pub struct ModuleName(/* private fields */);Expand description
The module a stamped payload is written into, at the target that invokes the carrier.
Implementations§
Source§impl ModuleName
impl ModuleName
Sourcepub fn declared(spelling: &str) -> Result<Self, DeclarationError>
pub fn declared(spelling: &str) -> Result<Self, DeclarationError>
This stamped module name, from the spelling an author wrote.
§Errors
Returns DeclarationError::NotAnIdentifier where the spelling cannot name a rendered item — not one Rust identifier, or a keyword the language already took: it is written into a consumer’s target in identifier position, and either disagreement renders tokens that compiler reads as something else.
Trait Implementations§
Source§impl Clone for ModuleName
impl Clone for ModuleName
Source§fn clone(&self) -> ModuleName
fn clone(&self) -> ModuleName
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 ModuleName
impl Debug for ModuleName
impl Eq for ModuleName
Source§impl Hash for ModuleName
impl Hash for ModuleName
Source§impl Ord for ModuleName
impl Ord for ModuleName
Source§fn cmp(&self, other: &ModuleName) -> Ordering
fn cmp(&self, other: &ModuleName) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ModuleName
impl PartialEq for ModuleName
Source§impl PartialOrd for ModuleName
impl PartialOrd for ModuleName
impl StructuralPartialEq for ModuleName
Auto Trait Implementations§
impl Freeze for ModuleName
impl RefUnwindSafe for ModuleName
impl Send for ModuleName
impl Sync for ModuleName
impl Unpin for ModuleName
impl UnsafeUnpin for ModuleName
impl UnwindSafe for ModuleName
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