pub struct BorrowedSeparatedPath<'a> {
pub dirname: &'a RelativePath,
pub basename: &'a Name,
}
Expand description
Path that separates the dirname and basename as different variables (referencing type). Convenient for / path representations that split the dirname and basename, like Fuchsia component decl.
Fields§
§dirname: &'a RelativePath
§basename: &'a Name
Implementations§
Source§impl BorrowedSeparatedPath<'_>
impl BorrowedSeparatedPath<'_>
Sourcepub fn to_owned(&self) -> SeparatedPath
pub fn to_owned(&self) -> SeparatedPath
Converts this BorrowedSeparatedPath to the owned type.
Trait Implementations§
Source§impl<'a> Clone for BorrowedSeparatedPath<'a>
impl<'a> Clone for BorrowedSeparatedPath<'a>
Source§fn clone(&self) -> BorrowedSeparatedPath<'a>
fn clone(&self) -> BorrowedSeparatedPath<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for BorrowedSeparatedPath<'a>
impl<'a> Debug for BorrowedSeparatedPath<'a>
Source§impl Display for BorrowedSeparatedPath<'_>
impl Display for BorrowedSeparatedPath<'_>
Source§impl IterablePath for BorrowedSeparatedPath<'_>
impl IterablePath for BorrowedSeparatedPath<'_>
Source§fn iter_segments(&self) -> impl DoubleEndedIterator<Item = &Name> + Send
fn iter_segments(&self) -> impl DoubleEndedIterator<Item = &Name> + Send
Returns a double-sided iterator over the segments in this path.
Source§impl<'a> PartialEq for BorrowedSeparatedPath<'a>
impl<'a> PartialEq for BorrowedSeparatedPath<'a>
impl<'a> Eq for BorrowedSeparatedPath<'a>
impl<'a> StructuralPartialEq for BorrowedSeparatedPath<'a>
Auto Trait Implementations§
impl<'a> Freeze for BorrowedSeparatedPath<'a>
impl<'a> RefUnwindSafe for BorrowedSeparatedPath<'a>
impl<'a> Send for BorrowedSeparatedPath<'a>
impl<'a> Sync for BorrowedSeparatedPath<'a>
impl<'a> Unpin for BorrowedSeparatedPath<'a>
impl<'a> UnwindSafe for BorrowedSeparatedPath<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)