pub struct FuncName {
pub namespace: Vec<Decorated<Ident>>,
pub name: Decorated<Ident>,
}
Expand description
Type representing a (potentially namespaced) function name.
Fields§
§namespace: Vec<Decorated<Ident>>
The function’s namespace components, if any.
name: Decorated<Ident>
The function name.
Implementations§
Source§impl FuncName
impl FuncName
Sourcepub fn new(name: impl Into<Decorated<Ident>>) -> FuncName
pub fn new(name: impl Into<Decorated<Ident>>) -> FuncName
Create a new FuncName
from a name identifier.
Sourcepub fn set_namespace<I>(&mut self, namespace: I)
pub fn set_namespace<I>(&mut self, namespace: I)
Sets the function namespace from an iterator of namespace parts.
Sourcepub fn is_namespaced(&self) -> bool
pub fn is_namespaced(&self) -> bool
Returns true
if the function name is namespaced.
Trait Implementations§
impl Eq for FuncName
impl StructuralPartialEq for FuncName
Auto Trait Implementations§
impl Freeze for FuncName
impl RefUnwindSafe for FuncName
impl Send for FuncName
impl Sync for FuncName
impl Unpin for FuncName
impl UnwindSafe for FuncName
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