pub enum PathSeparator {
Slash,
Backslash,
Mixed,
None,
}Expand description
Describes which separator styles appear in a path-like input.
Variants§
Slash
Only / appears.
Backslash
Only \ appears.
Mixed
Both / and \ appear.
None
No path separator appears.
Trait Implementations§
Source§impl Clone for PathSeparator
impl Clone for PathSeparator
Source§fn clone(&self) -> PathSeparator
fn clone(&self) -> PathSeparator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathSeparator
impl Debug for PathSeparator
Source§impl PartialEq for PathSeparator
impl PartialEq for PathSeparator
Source§fn eq(&self, other: &PathSeparator) -> bool
fn eq(&self, other: &PathSeparator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PathSeparator
impl Eq for PathSeparator
impl StructuralPartialEq for PathSeparator
Auto Trait Implementations§
impl Freeze for PathSeparator
impl RefUnwindSafe for PathSeparator
impl Send for PathSeparator
impl Sync for PathSeparator
impl Unpin for PathSeparator
impl UnsafeUnpin for PathSeparator
impl UnwindSafe for PathSeparator
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