pub struct FnKey {
pub scope: Option<String>,
pub name: String,
}Expand description
Canonical identity for a user-defined function across the IR
boundary. scope = None is the entry file; scope = Some(prefix)
names a dep module ("ModuleA", "Models.User", …). name
is the bare source name. Two modules each declaring a foo
produce distinct FnKey { scope: Some("A"), name: "foo" } and
FnKey { scope: Some("B"), name: "foo" } keys.
Fields§
§scope: Option<String>§name: StringImplementations§
Source§impl FnKey
impl FnKey
Sourcepub fn in_module(prefix: impl Into<String>, name: impl Into<String>) -> Self
pub fn in_module(prefix: impl Into<String>, name: impl Into<String>) -> Self
Module-scope constructor.
Trait Implementations§
impl Eq for FnKey
impl StructuralPartialEq for FnKey
Auto Trait Implementations§
impl Freeze for FnKey
impl RefUnwindSafe for FnKey
impl Send for FnKey
impl Sync for FnKey
impl Unpin for FnKey
impl UnsafeUnpin for FnKey
impl UnwindSafe for FnKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.