[][src]Struct naut::cli::common_dir::CommonDir

pub struct CommonDir(_, _);

A common dir (1st element), and a set of paths (2nd element) which when concatenated with the common dir, result in a full path again.

Implementations

impl CommonDir[src]

pub fn try_new<P: AsRef<Path>, I: IntoIterator<Item = P> + Clone>(
    paths: I
) -> Result<Self>
[src]

Expects canonicalized paths

pub fn common_root(&self) -> &Path[src]

The found common root path

pub fn input_paths(&self) -> Vec<&Path>[src]

The original input paths

pub fn path_branches(&self) -> Vec<&Path>[src]

The k's in concat(common dir, k)

pub fn path_combinations(&self) -> Vec<(&Path, &Path)>[src]

A tuple of the original input path, and its path branch

Trait Implementations

impl Debug for CommonDir[src]

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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.