pub enum RelativeTo {
WorkingDir,
File,
}
Expand description
If the path is a relative path, what is it relative from?
If ‘RelativeTo::WorkingDir’, then the path is assumed to be relative to the working dir, and can be used directly as a path.
If ‘RelativeTo::File’, then the path is relative to the file that contained the path. To use the path, it must be resolved against the path to the file.
Variants§
Trait Implementations§
Source§impl Clone for RelativeTo
impl Clone for RelativeTo
Source§fn clone(&self) -> RelativeTo
fn clone(&self) -> RelativeTo
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 RelativeTo
impl Debug for RelativeTo
Source§impl Default for RelativeTo
impl Default for RelativeTo
Source§fn default() -> RelativeTo
fn default() -> RelativeTo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelativeTo
impl<'de> Deserialize<'de> for RelativeTo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RelativeTo
impl PartialEq for RelativeTo
Source§impl Serialize for RelativeTo
impl Serialize for RelativeTo
impl Eq for RelativeTo
impl StructuralPartialEq for RelativeTo
Auto Trait Implementations§
impl Freeze for RelativeTo
impl RefUnwindSafe for RelativeTo
impl Send for RelativeTo
impl Sync for RelativeTo
impl Unpin for RelativeTo
impl UnwindSafe for RelativeTo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)