Struct cargo::util::config::ConfigRelativePath [−][src]
Use with the get
API to fetch a string that will be converted to a
PathBuf
. Relative paths are converted to absolute paths based on the
location of the config file.
Implementations
impl ConfigRelativePath
[src]
pub fn raw_value(&self) -> &str
[src]
Returns the raw underlying configuration value for this key.
pub fn resolve_path(&self, config: &Config) -> PathBuf
[src]
Resolves this configuration-relative path to an absolute path.
This will always return an absolute path where it’s relative to the location for configuration for this value.
pub fn resolve_program(self, config: &Config) -> PathBuf
[src]
Resolves this configuration-relative path to either an absolute path or
something appropriate to execute from PATH
.
Values which don’t look like a filesystem path (don’t contain /
or
\
) will be returned as-is, and everything else will fall through to an
absolute path.
Trait Implementations
impl Clone for ConfigRelativePath
[src]
fn clone(&self) -> ConfigRelativePath
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConfigRelativePath
[src]
impl<'de> Deserialize<'de> for ConfigRelativePath
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ConfigRelativePath> for ConfigRelativePath
[src]
fn eq(&self, other: &ConfigRelativePath) -> bool
[src]
fn ne(&self, other: &ConfigRelativePath) -> bool
[src]
impl StructuralPartialEq for ConfigRelativePath
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfigRelativePath
impl Send for ConfigRelativePath
impl Sync for ConfigRelativePath
impl Unpin for ConfigRelativePath
impl UnwindSafe for ConfigRelativePath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,