pub enum FunctionLocation {
Main {
function_name: String,
},
Custom {
path: ExternItemPath,
},
}
Variants§
Implementations§
source§impl FunctionLocation
impl FunctionLocation
fn as_function_ident(&self, namespace: Rc<str>) -> FunctionIdent
Trait Implementations§
source§impl Debug for FunctionLocation
impl Debug for FunctionLocation
source§impl Hash for FunctionLocation
impl Hash for FunctionLocation
source§impl PartialEq for FunctionLocation
impl PartialEq for FunctionLocation
source§fn eq(&self, other: &FunctionLocation) -> bool
fn eq(&self, other: &FunctionLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FunctionLocation
impl StructuralEq for FunctionLocation
impl StructuralPartialEq for FunctionLocation
Auto Trait Implementations§
impl RefUnwindSafe for FunctionLocation
impl Send for FunctionLocation
impl Sync for FunctionLocation
impl Unpin for FunctionLocation
impl UnwindSafe for FunctionLocation
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.