Trait HasPath

Source
pub trait HasPath {
    // Required method
    fn path(&self) -> Path;
}
Expand description

This trait should be implemented by types that have an absolute path.

Required Methods§

Source

fn path(&self) -> Path

Gets the path of the type.

Implementations on Foreign Types§

Source§

impl HasPath for ()

Source§

fn path(&self) -> Path

Source§

impl<T> HasPath for Box<T>
where T: HasPath,

Source§

fn path(&self) -> Path

Implementors§

Source§

impl<Parent, Value> HasPath for Visitor<Parent, Value>
where Value: HasPathSegment, Parent: HasPath,