pub enum WindowsPathSeparatorStyle {
Auto,
Slash,
Backslash,
}Expand description
Controls how path separators are represented in emitted event paths on Windows.
This applies to ReadDirectoryChangesWatcher.
Variants§
Auto
Infer separator style from each watched input path.
For example, watching C:/tmp yields paths with /, while watching C:\tmp
yields paths with \.
Slash
Always use / in emitted event paths.
Backslash
Always use \ in emitted event paths.
Trait Implementations§
Source§impl Clone for WindowsPathSeparatorStyle
impl Clone for WindowsPathSeparatorStyle
impl Copy for WindowsPathSeparatorStyle
Source§impl Debug for WindowsPathSeparatorStyle
impl Debug for WindowsPathSeparatorStyle
Source§impl Default for WindowsPathSeparatorStyle
impl Default for WindowsPathSeparatorStyle
impl Eq for WindowsPathSeparatorStyle
Source§impl Hash for WindowsPathSeparatorStyle
impl Hash for WindowsPathSeparatorStyle
Source§impl Ord for WindowsPathSeparatorStyle
impl Ord for WindowsPathSeparatorStyle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for WindowsPathSeparatorStyle
impl PartialOrd for WindowsPathSeparatorStyle
impl StructuralPartialEq for WindowsPathSeparatorStyle
Auto Trait Implementations§
impl Freeze for WindowsPathSeparatorStyle
impl RefUnwindSafe for WindowsPathSeparatorStyle
impl Send for WindowsPathSeparatorStyle
impl Sync for WindowsPathSeparatorStyle
impl Unpin for WindowsPathSeparatorStyle
impl UnsafeUnpin for WindowsPathSeparatorStyle
impl UnwindSafe for WindowsPathSeparatorStyle
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