pub struct SeparatedPath {
pub dirname: RelativePath,
pub basename: Name,
}
Expand description
Path that separates the dirname and basename as different variables (owned type). Convenient for path representations that split the dirname and basename, like Fuchsia component decl.
Fields§
§dirname: RelativePath
§basename: Name
Implementations§
Source§impl SeparatedPath
impl SeparatedPath
Sourcepub fn as_ref(&self) -> BorrowedSeparatedPath<'_>
pub fn as_ref(&self) -> BorrowedSeparatedPath<'_>
Obtains a reference to this SeparatedPath as the borrowed type.
Trait Implementations§
Source§impl Clone for SeparatedPath
impl Clone for SeparatedPath
Source§fn clone(&self) -> SeparatedPath
fn clone(&self) -> SeparatedPath
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 Debug for SeparatedPath
impl Debug for SeparatedPath
Source§impl Display for SeparatedPath
impl Display for SeparatedPath
Source§impl IterablePath for SeparatedPath
impl IterablePath for SeparatedPath
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 PartialEq for SeparatedPath
impl PartialEq for SeparatedPath
impl Eq for SeparatedPath
impl StructuralPartialEq for SeparatedPath
Auto Trait Implementations§
impl Freeze for SeparatedPath
impl RefUnwindSafe for SeparatedPath
impl Send for SeparatedPath
impl Sync for SeparatedPath
impl Unpin for SeparatedPath
impl UnwindSafe for SeparatedPath
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
)