pub struct JPath { /* private fields */ }Implementations§
Source§impl JPath
impl JPath
Sourcepub fn parse(s: &str) -> Option<JPath>
pub fn parse(s: &str) -> Option<JPath>
Paths.get(s); None where Windows throws InvalidPathException (wildcards and the like).
pub fn from_path(path: &Path) -> JPath
pub fn is_absolute(&self) -> bool
Sourcepub fn resolve(&self, other: &str) -> Option<JPath>
pub fn resolve(&self, other: &str) -> Option<JPath>
resolve(other): other when absolute, else appended (no normalization).
pub fn normalize(&self) -> JPath
pub fn starts_with(&self, other: &JPath) -> bool
pub fn parent(&self) -> Option<JPath>
pub fn file_name(&self) -> Option<&str>
Sourcepub fn relative_to(&self, base: &JPath) -> Option<JPath>
pub fn relative_to(&self, base: &JPath) -> Option<JPath>
Kotlin’s relativeToOrSelf(base) (PathRelativizer): None where it would throw.
pub fn relative_to_or_self(&self, base: &JPath) -> JPath
pub fn to_path_buf(&self) -> PathBuf
Trait Implementations§
impl Eq for JPath
impl StructuralPartialEq for JPath
Auto Trait Implementations§
impl Freeze for JPath
impl RefUnwindSafe for JPath
impl Send for JPath
impl Sync for JPath
impl Unpin for JPath
impl UnsafeUnpin for JPath
impl UnwindSafe for JPath
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