• Home
  • Raw
  • Download

Lines Matching refs:RustIdent

6 pub(crate) struct RustIdent(String);  struct
9 impl RustIdent { impl
10 pub fn new(s: &str) -> RustIdent { in new() argument
15 RustIdent(s.to_owned()) in new()
18 pub fn super_ident() -> RustIdent { in super_ident()
19 RustIdent::new("super") in super_ident()
35 impl fmt::Display for RustIdent { implementation
41 impl From<&'_ str> for RustIdent { implementation
43 RustIdent::new(s) in from()
47 impl From<String> for RustIdent { implementation
49 RustIdent::new(&s) in from()
53 impl Into<String> for RustIdent { implementation
61 path: Vec<RustIdent>,
77 pub fn from_components<I: IntoIterator<Item = RustIdent>>(i: I) -> RustRelativePath { in from_components()
87 pub fn first(&self) -> Option<RustIdent> { in first() argument
91 pub fn remove_first(&mut self) -> Option<RustIdent> { in remove_first() argument
99 pub fn prepend_ident(&mut self, ident: RustIdent) { in prepend_ident() argument
110 pub fn push_ident(&mut self, ident: RustIdent) { in push_ident() argument
114 pub fn _append_ident(mut self, ident: RustIdent) -> RustRelativePath { in _append_ident()
121 iter::repeat(RustIdent::super_ident()).take(self.path.len()), in to_reverse()
147 path: s.split("::").map(RustIdent::from).collect(), in from()
163 pub fn with_ident(self, ident: RustIdent) -> RustIdentWithPath { in with_ident()
167 pub fn first(&self) -> Option<RustIdent> { in first() argument
172 pub fn remove_first(&mut self) -> Option<RustIdent> { in remove_first() argument
185 pub fn prepend_ident(&mut self, ident: RustIdent) { in prepend_ident() argument
201 pub fn append_ident(mut self, ident: RustIdent) -> RustPath { in append_ident()
243 pub ident: RustIdent,
254 pub fn prepend_ident(&mut self, ident: RustIdent) { in prepend_ident() argument