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

Method last_str

crates/common/src/env.rs:229–234  ·  view source on GitHub ↗

Get the last string component of this name, if any.

(&self)

Source from the content-addressed store, hash-verified

227
228 /// Get the last string component of this name, if any.
229 pub fn last_str(&self) -> Option<&str> {
230 match self.as_data() {
231 NameData::Str(_, s, _) => Some(s.as_str()),
232 _ => None,
233 }
234 }
235
236 /// Returns a dot-separated human-readable representation of this name.
237 pub fn pretty(&self) -> String {

Callers 5

classify_aux_genFunction · 0.80
brecon_def_to_leanFunction · 0.80
brecon_to_mut_constFunction · 0.80
brecon_batchFunction · 0.80
aux_rec_suffix_idxFunction · 0.80

Calls 1

as_dataMethod · 0.80

Tested by

no test coverage detected