Struct cm_types::SeparatedPath
source · 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
) -> 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 PartialEq for SeparatedPath
impl PartialEq for SeparatedPath
source§fn eq(&self, other: &SeparatedPath) -> bool
fn eq(&self, other: &SeparatedPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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