pub struct StampName { /* private fields */ }Expand description
The name one published stamp is exported under.
The spelling is the caller’s and is never mangled: a published artifact is visible source a person commits and other files invoke by name, so the uniqueness an exported macro namespace needs is the caller’s to keep.
Implementations§
Source§impl StampName
impl StampName
Sourcepub fn declared(spelling: &str) -> Result<Self, StampError>
pub fn declared(spelling: &str) -> Result<Self, StampError>
The name one published stamp is exported under.
§Errors
Returns StampError::NotAnIdentifier where the spelling cannot name an exported item — not one Rust identifier, or a keyword the language already took.
Trait Implementations§
impl Eq for StampName
impl StructuralPartialEq for StampName
Auto Trait Implementations§
impl Freeze for StampName
impl RefUnwindSafe for StampName
impl Send for StampName
impl Sync for StampName
impl Unpin for StampName
impl UnsafeUnpin for StampName
impl UnwindSafe for StampName
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