MCPcopy Create free account
hub / github.com/PRQL/prql / pop_front

Method pop_front

prqlc/prqlc-parser/src/parser/pr/ident.rs:48–55  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

46 }
47
48 pub fn pop_front(mut self) -> (String, Option<Ident>) {
49 if self.path.is_empty() {
50 (self.name, None)
51 } else {
52 let first = self.path.remove(0);
53 (first, Some(self))
54 }
55 }
56
57 pub fn prepend(self, mut parts: Vec<String>) -> Ident {
58 parts.extend(self);

Callers 4

insertMethod · 0.80
lookup_inMethod · 0.80
apply_assignMethod · 0.80
ambiguous_errorFunction · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected