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

Method append_components

crates/common/src/env.rs:217–226  ·  view source on GitHub ↗

Append suffix components to this name.

(&self, suffix: &[NameComponent])

Source from the content-addressed store, hash-verified

215
216 /// Append suffix components to this name.
217 pub fn append_components(&self, suffix: &[NameComponent]) -> Name {
218 let mut result = self.clone();
219 for component in suffix {
220 match component {
221 NameComponent::Str(s) => result = Name::str(result, s.clone()),
222 NameComponent::Num(n) => result = Name::num(result, n.clone()),
223 }
224 }
225 result
226 }
227
228 /// Get the last string component of this name, if any.
229 pub fn last_str(&self) -> Option<&str> {

Callers 5

generate_aux_patchesFunction · 0.80
build_below_indc_ctorFunction · 0.80
build_rec_typeFunction · 0.80
get_minor_nameFunction · 0.80
name_replace_prefixFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected