pub enum StringOrPathBuf {
String(String),
PathBuf(PathBuf),
}Variants§
Trait Implementations§
Source§impl Clone for StringOrPathBuf
impl Clone for StringOrPathBuf
Source§fn clone(&self) -> StringOrPathBuf
fn clone(&self) -> StringOrPathBuf
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 StringOrPathBuf
impl Debug for StringOrPathBuf
Source§impl Hash for StringOrPathBuf
impl Hash for StringOrPathBuf
Source§impl Ord for StringOrPathBuf
impl Ord for StringOrPathBuf
Source§fn cmp(&self, other: &StringOrPathBuf) -> Ordering
fn cmp(&self, other: &StringOrPathBuf) -> Ordering
1.21.0 · 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
Source§impl PartialEq for StringOrPathBuf
impl PartialEq for StringOrPathBuf
Source§impl PartialOrd for StringOrPathBuf
impl PartialOrd for StringOrPathBuf
impl Eq for StringOrPathBuf
impl StructuralPartialEq for StringOrPathBuf
Auto Trait Implementations§
impl Freeze for StringOrPathBuf
impl RefUnwindSafe for StringOrPathBuf
impl Send for StringOrPathBuf
impl Sync for StringOrPathBuf
impl Unpin for StringOrPathBuf
impl UnwindSafe for StringOrPathBuf
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