pub struct InstanceMember {
pub module: ModuleName,
pub class: QualName,
pub head: HeadName,
pub member: Name,
pub arity: usize,
}Expand description
A member of an instance that has no context, which is an ordinary declaration of the module that declares the instance, emitted once.
A use of a class member at a type that has such an instance is a direct reference to
this, and no other module needs a copy. The function’s name is built from the three
things that identify it and from nothing a source file spells: zelkova_js writes
$instance$….
Fields§
§module: ModuleNameThe module that declares the instance, which is where the function is.
class: QualNameThe class, named by the package and module that declared it.
head: HeadNameThe name at the front of the instance’s head.
member: NameThe member’s own name.
arity: usizeHow many arguments a call has to supply to be a direct call: the number of
parameters the instance’s binding was written with, as Declaration::arity counts
them.
Trait Implementations§
Source§impl Clone for InstanceMember
impl Clone for InstanceMember
Source§fn clone(&self) -> InstanceMember
fn clone(&self) -> InstanceMember
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more