MCPcopy Create free account
hub / github.com/argumentcomputer/ix / name

Method name

crates/compile/src/mutual.rs:141–147  ·  view source on GitHub ↗

Returns the name of this mutual constant.

(&self)

Source from the content-addressed store, hash-verified

139impl MutConst {
140 /// Returns the name of this mutual constant.
141 pub fn name(&self) -> Name {
142 match self {
143 Self::Defn(x) => x.name.clone(),
144 Self::Recr(x) => x.cnst.name.clone(),
145 Self::Indc(x) => x.ind.cnst.name.clone(),
146 }
147 }
148
149 /// Returns the constructors if this is an inductive, or an empty vec otherwise.
150 pub fn ctors(&self) -> Vec<ConstructorVal> {

Callers 10

roundtrip_blockFunction · 0.45
compare_constFunction · 0.45
sort_constsFunction · 0.45
compile_mutualFunction · 0.45
ctxMethod · 0.45

Calls 1

cloneMethod · 0.45