Struct cm_types::BorrowedSeparatedPath
source · 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
) -> Box<dyn DoubleEndedIterator<Item = &Name> + Send + '_>
fn iter_segments( &self ) -> Box<dyn 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>
source§fn eq(&self, other: &BorrowedSeparatedPath<'a>) -> bool
fn eq(&self, other: &BorrowedSeparatedPath<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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