pub enum ParsedPath {
Local(PathBuf),
Remote(RemotePath),
}Expand description
Parsed path that can be either local or remote
Variants§
Implementations§
Source§impl ParsedPath
impl ParsedPath
Sourcepub fn as_remote(&self) -> Option<&RemotePath>
pub fn as_remote(&self) -> Option<&RemotePath>
Get the remote path if this is a remote path
Trait Implementations§
Source§impl Clone for ParsedPath
impl Clone for ParsedPath
Source§fn clone(&self) -> ParsedPath
fn clone(&self) -> ParsedPath
Returns a duplicate 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 ParsedPath
impl Debug for ParsedPath
Source§impl PartialEq for ParsedPath
impl PartialEq for ParsedPath
impl Eq for ParsedPath
impl StructuralPartialEq for ParsedPath
Auto Trait Implementations§
impl Freeze for ParsedPath
impl RefUnwindSafe for ParsedPath
impl Send for ParsedPath
impl Sync for ParsedPath
impl Unpin for ParsedPath
impl UnsafeUnpin for ParsedPath
impl UnwindSafe for ParsedPath
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