pub enum Path {
RootlessPath {
type_name: &'static str,
parts: Vec<String>,
},
AbemptyPath {
type_name: &'static str,
parts: Vec<String>,
},
AbsolutePath {
type_name: &'static str,
parts: Vec<String>,
},
NoSchemePath {
type_name: &'static str,
parts: Vec<String>,
},
EmptyPath {
type_name: &'static str,
},
}
Variants§
Implementations§
Source§impl Path
impl Path
pub fn of_rootless_from_strs(parts: &[&str]) -> Self
pub fn of_rootless_from_strings(parts: &[String]) -> Self
pub fn of_abempty_from_strs(parts: &[&str]) -> Self
pub fn of_abempty_from_strings(parts: &[String]) -> Self
pub fn of_absolute_from_strs(parts: &[&str]) -> Self
pub fn of_absolute_from_strings(parts: &[String]) -> Self
pub fn of_no_scheme_from_strs(parts: &[&str]) -> Self
pub fn of_no_scheme_from_strings(parts: &[String]) -> Self
pub fn of_empty() -> Self
pub fn type_name(&self) -> &'static str
pub fn parts(&self) -> &Vec<String>
pub fn is_empty(&self) -> bool
pub fn non_empty(&self) -> bool
pub fn with_parts(&mut self, parts: Vec<String>)
pub fn to_rootless(&self) -> Path
pub fn to_absolute(&self) -> Path
pub fn add_part(&mut self, part: String)
pub fn add_parts(&mut self, parts: Vec<String>)
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin 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