pub enum FunctionLikeName {
Function(Name),
Method(ClassLikeName, Name),
PropertyHook(ClassLikeName, Name, Name),
Closure(Span),
ArrowFunction(Span),
}Variants§
Function(Name)
Method(ClassLikeName, Name)
PropertyHook(ClassLikeName, Name, Name)
Closure(Span)
ArrowFunction(Span)
Implementations§
Source§impl FunctionLikeName
impl FunctionLikeName
pub fn get_key(&self, interner: &ThreadedInterner) -> String
Trait Implementations§
Source§impl Clone for FunctionLikeName
impl Clone for FunctionLikeName
Source§fn clone(&self) -> FunctionLikeName
fn clone(&self) -> FunctionLikeName
Returns a copy 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 moreSource§impl Debug for FunctionLikeName
impl Debug for FunctionLikeName
Source§impl<'de> Deserialize<'de> for FunctionLikeName
impl<'de> Deserialize<'de> for FunctionLikeName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FunctionLikeName
impl Hash for FunctionLikeName
Source§impl Ord for FunctionLikeName
impl Ord for FunctionLikeName
Source§fn cmp(&self, other: &FunctionLikeName) -> Ordering
fn cmp(&self, other: &FunctionLikeName) -> Ordering
1.21.0 · 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 FunctionLikeName
impl PartialEq for FunctionLikeName
Source§impl PartialOrd for FunctionLikeName
impl PartialOrd for FunctionLikeName
Source§impl Serialize for FunctionLikeName
impl Serialize for FunctionLikeName
impl Copy for FunctionLikeName
impl Eq for FunctionLikeName
impl StructuralPartialEq for FunctionLikeName
Auto Trait Implementations§
impl Freeze for FunctionLikeName
impl RefUnwindSafe for FunctionLikeName
impl Send for FunctionLikeName
impl Sync for FunctionLikeName
impl Unpin for FunctionLikeName
impl UnwindSafe for FunctionLikeName
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