pub enum StringOrPath {
String(String),
Path(PathBuf),
}Expand description
String or Path
Variants§
Trait Implementations§
Source§impl Clone for StringOrPath
impl Clone for StringOrPath
Source§fn clone(&self) -> StringOrPath
fn clone(&self) -> StringOrPath
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 StringOrPath
impl Debug for StringOrPath
Source§impl From<&str> for StringOrPath
impl From<&str> for StringOrPath
Source§fn from(value: &str) -> StringOrPath
fn from(value: &str) -> StringOrPath
Converts to this type from the input type.
Source§impl From<PathBuf> for StringOrPath
impl From<PathBuf> for StringOrPath
Source§fn from(value: PathBuf) -> StringOrPath
fn from(value: PathBuf) -> StringOrPath
Converts to this type from the input type.
Source§impl From<String> for StringOrPath
impl From<String> for StringOrPath
Source§fn from(value: String) -> StringOrPath
fn from(value: String) -> StringOrPath
Converts to this type from the input type.
Source§impl PartialEq for StringOrPath
impl PartialEq for StringOrPath
Source§impl Serialize for StringOrPath
impl Serialize for StringOrPath
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StringOrPath
Auto Trait Implementations§
impl Freeze for StringOrPath
impl RefUnwindSafe for StringOrPath
impl Send for StringOrPath
impl Sync for StringOrPath
impl Unpin for StringOrPath
impl UnsafeUnpin for StringOrPath
impl UnwindSafe for StringOrPath
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