pub struct FunctionName {
pub names: Vec<SpannedString>,
pub colon: Option<SpannedString>,
pub span: Span,
}Expand description
function name.
a sequence of identifiers separated by dots, and an optional colon followed by an identifier.
e.g. a.b.c:d
Fields§
§names: Vec<SpannedString>dot chain
colon: Option<SpannedString>colon chain at the end
span: Spanspan of the whole function name
Implementations§
Source§impl FunctionName
impl FunctionName
pub fn new( names: Vec<SpannedString>, colon: Option<SpannedString>, span: Span, ) -> Self
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionName
impl RefUnwindSafe for FunctionName
impl Send for FunctionName
impl Sync for FunctionName
impl Unpin 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