pub struct ModuleSpelling { /* private fields */ }Expand description
The spelling one visibly published module is declared under.
§Bounds
One Rust identifier by construction: the module lands in the caller’s own scope and shares a namespace with every other item there.
Implementations§
Source§impl ModuleSpelling
impl ModuleSpelling
Sourcepub fn spelled(spelling: &str) -> Result<Self, CodecError>
pub fn spelled(spelling: &str) -> Result<Self, CodecError>
One published module’s spelling.
§Errors
Returns CodecIssue::ModuleSpellingNotAnIdentifier where the spelling cannot name a rendered item: not one Rust identifier, or a keyword the language already took.
Trait Implementations§
Source§impl Clone for ModuleSpelling
impl Clone for ModuleSpelling
Source§fn clone(&self) -> ModuleSpelling
fn clone(&self) -> ModuleSpelling
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 ModuleSpelling
impl Debug for ModuleSpelling
impl Eq for ModuleSpelling
Source§impl Hash for ModuleSpelling
impl Hash for ModuleSpelling
Source§impl Ord for ModuleSpelling
impl Ord for ModuleSpelling
Source§fn cmp(&self, other: &ModuleSpelling) -> Ordering
fn cmp(&self, other: &ModuleSpelling) -> 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 ModuleSpelling
impl PartialEq for ModuleSpelling
Source§impl PartialOrd for ModuleSpelling
impl PartialOrd for ModuleSpelling
impl StructuralPartialEq for ModuleSpelling
Auto Trait Implementations§
impl Freeze for ModuleSpelling
impl RefUnwindSafe for ModuleSpelling
impl Send for ModuleSpelling
impl Sync for ModuleSpelling
impl Unpin for ModuleSpelling
impl UnsafeUnpin for ModuleSpelling
impl UnwindSafe for ModuleSpelling
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