pub struct FunctionName(/* private fields */);Expand description
A function a rendered module declares.
One type for every function a stamped module writes, because they all land in ONE namespace: an aggregate seat colliding with a row lens is the same defect as two lenses colliding, and one type is what lets a single pass say so.
Implementations§
Source§impl FunctionName
impl FunctionName
Sourcepub fn declared(spelling: &str) -> Result<Self, DeclarationError>
pub fn declared(spelling: &str) -> Result<Self, DeclarationError>
This declared function 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 FunctionName
impl Clone for FunctionName
Source§fn clone(&self) -> FunctionName
fn clone(&self) -> FunctionName
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 FunctionName
impl Debug for FunctionName
impl Eq for FunctionName
Source§impl Hash for FunctionName
impl Hash for FunctionName
Source§impl Ord for FunctionName
impl Ord for FunctionName
Source§fn cmp(&self, other: &FunctionName) -> Ordering
fn cmp(&self, other: &FunctionName) -> 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 FunctionName
impl PartialEq for FunctionName
Source§impl PartialOrd for FunctionName
impl PartialOrd for FunctionName
impl StructuralPartialEq for FunctionName
Auto Trait Implementations§
impl Freeze for FunctionName
impl RefUnwindSafe for FunctionName
impl Send for FunctionName
impl Sync for FunctionName
impl Unpin for FunctionName
impl UnsafeUnpin for FunctionName
impl UnwindSafe for FunctionName
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