[][src]Struct stk::Item

pub struct Item { /* fields omitted */ }

The name of an item.

This is made up of a collection of strings, like ["foo", "bar"]. This is indicated in rune as foo::bar.

Implementations

impl Item[src]

pub fn new(path: Vec<String>) -> Self[src]

Construct a new item path.

pub fn of<I>(iter: I) -> Self where
    I: IntoIterator,
    I::Item: AsRef<str>, 
[src]

Construct a new item path.

pub fn join<I>(&self, other: I) -> Self where
    I: IntoIterator,
    I::Item: AsRef<str>, 
[src]

Join this path with another.

pub fn extended<S>(&self, part: S) -> Self where
    S: AsRef<str>, 
[src]

Clone and extend the item path.

pub fn last(&self) -> Option<&str>[src]

Access the last component in the path.

Trait Implementations

impl Clone for Item[src]

impl Debug for Item[src]

impl Default for Item[src]

impl Display for Item[src]

impl Eq for Item[src]

impl Hash for Item[src]

impl<'a> IntoIterator for &'a Item[src]

type IntoIter = Iter<'a, String>

Which kind of iterator are we turning this into?

type Item = &'a String

The type of the elements being iterated over.

impl Ord for Item[src]

impl PartialEq<Item> for Item[src]

impl PartialOrd<Item> for Item[src]

impl StructuralEq for Item[src]

impl StructuralPartialEq for Item[src]

Auto Trait Implementations

impl RefUnwindSafe for Item

impl Send for Item

impl Sync for Item

impl Unpin for Item

impl UnwindSafe for Item

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,