Trait PathJoined

Source
pub trait PathJoined {
    // Required method
    fn iter_join(self) -> Result<PathBuf, Error>;
}
Expand description

A trait for joining path components into a PathBuf.

This trait provides a method to join multiple path components into a single PathBuf. It is implemented for tuples of varying lengths, allowing for flexible combinations of path components. Each component must implement the TryIntoCowPath trait, enabling conversion into a Cow<Path>.

Required Methods§

Source

fn iter_join(self) -> Result<PathBuf, Error>

Joins the path components into a single PathBuf.

§Returns
  • Ok(PathBuf) - The joined path as a PathBuf.
  • Err(io::Error) - An error if any component fails to convert.
§Errors

qqq: doc

Implementations on Foreign Types§

Source§

impl<'a, T1> PathJoined for (T1,)
where T1: TryIntoCowPath<'a>,

Source§

impl<'a, T1, T2> PathJoined for (T1, T2)
where T1: TryIntoCowPath<'a>, T2: TryIntoCowPath<'a>,

Source§

impl<'a, T1, T2, T3> PathJoined for (T1, T2, T3)
where T1: TryIntoCowPath<'a>, T2: TryIntoCowPath<'a>, T3: TryIntoCowPath<'a>,

Source§

impl<'a, T1, T2, T3, T4> PathJoined for (T1, T2, T3, T4)
where T1: TryIntoCowPath<'a>, T2: TryIntoCowPath<'a>, T3: TryIntoCowPath<'a>, T4: TryIntoCowPath<'a>,

Source§

impl<'a, T1, T2, T3, T4, T5> PathJoined for (T1, T2, T3, T4, T5)
where T1: TryIntoCowPath<'a>, T2: TryIntoCowPath<'a>, T3: TryIntoCowPath<'a>, T4: TryIntoCowPath<'a>, T5: TryIntoCowPath<'a>,

Source§

impl<'a, T> PathJoined for &'a [T]
where T: TryIntoCowPath<'a> + Clone,

Source§

impl<'a, T, const N: usize> PathJoined for [T; N]
where T: TryIntoCowPath<'a> + Clone,

Implementors§