Struct runestick::Names [−][src]
pub struct Names { /* fields omitted */ }
Expand description
A tree of names.
Implementations
Insert the given item as an import.
Examples
use runestick::Names; let mut names = Names::new(); assert!(!names.contains(&["test"])); assert!(!names.insert(&["test"])); assert!(names.contains(&["test"])); assert!(names.insert(&["test"]));
Test if the given import exists.
Examples
use runestick::Names; let mut names = Names::new(); assert!(!names.contains(&["test"])); assert!(!names.insert(&["test"])); assert!(names.contains(&["test"])); assert!(names.insert(&["test"]));
pub fn contains_prefix<I>(&self, iter: I) -> bool where
I: IntoIterator,
I::Item: IntoComponent,
pub fn contains_prefix<I>(&self, iter: I) -> bool where
I: IntoIterator,
I::Item: IntoComponent,
Test if we contain the given prefix.
pub fn iter_components<'a, I: 'a>(
&'a self,
iter: I
) -> impl Iterator<Item = ComponentRef<'a>> + 'a where
I: IntoIterator,
I::Item: IntoComponent,
pub fn iter_components<'a, I: 'a>(
&'a self,
iter: I
) -> impl Iterator<Item = ComponentRef<'a>> + 'a where
I: IntoIterator,
I::Item: IntoComponent,
Iterate over all known components immediately under the specified iter
path.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Names
impl UnwindSafe for Names
Blanket Implementations
Mutably borrows from an owned value. Read more