Enum fuchsia_pkg::RelativeTo
source · 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§fn eq(&self, other: &RelativeTo) -> bool
fn eq(&self, other: &RelativeTo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)