pub struct Path {
pub components: Vec<Component>,
}Fields§
§components: Vec<Component>Implementations§
Source§impl Path
impl Path
Sourcepub fn from_component(component: Component) -> Path
pub fn from_component(component: Component) -> Path
C++ explicit Path(Component component) — single-component path
Sourcepub fn from_components(components: Vec<Component>) -> Path
pub fn from_components(components: Vec<Component>) -> Path
C++ explicit Path(std::vector<Component> components)
pub fn append(&self, suffix: &Path) -> Path
pub fn push(&self, component: Component) -> Path
pub fn push_front(&self, component: Component) -> Path
pub fn pop(&self) -> Path
pub fn last(&self) -> Option<Component>
pub fn path_empty(&self) -> bool
pub fn operator_eq(&self, other: &Path) -> bool
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl !Send for Path
impl !Sync for Path
impl Freeze for Path
impl RefUnwindSafe for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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