Enum omnipath::windows::Win32Relative
source · pub enum Win32Relative {
CurrentDirectory,
DriveRelative(u16),
Root,
}
Expand description
The type of relative path.
Variants§
Implementations§
source§impl Win32Relative
impl Win32Relative
pub const fn from_kind(kind: WinPathKind) -> Option<Self>
sourcepub const fn is_legacy_relative(self) -> bool
pub const fn is_legacy_relative(self) -> bool
Is the path one of the weird ones from DOS.
These should probably be considered invalid if given from a configuration file but you may want to support them if given through command line arguments (e.g. because they come from the command prompt or a bat file).
Trait Implementations§
source§impl Clone for Win32Relative
impl Clone for Win32Relative
source§fn clone(&self) -> Win32Relative
fn clone(&self) -> Win32Relative
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 Win32Relative
impl Debug for Win32Relative
impl Copy for Win32Relative
Auto Trait Implementations§
impl RefUnwindSafe for Win32Relative
impl Send for Win32Relative
impl Sync for Win32Relative
impl Unpin for Win32Relative
impl UnwindSafe for Win32Relative
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