pub enum VarValue {
Dir,
Sub(&'static str),
Literal(&'static str),
Template(&'static str),
}Expand description
What a variable is set to.
Variants§
Dir
The tool’s directory.
Sub(&'static str)
A subdirectory of the tool’s directory.
Literal(&'static str)
A fixed value.
Template(&'static str)
A value with {dir} replaced by the tool’s directory. The cache root
never contains whitespace, so the result is one shell word.
Trait Implementations§
impl Copy for VarValue
impl Eq for VarValue
impl StructuralPartialEq for VarValue
Auto Trait Implementations§
impl Freeze for VarValue
impl RefUnwindSafe for VarValue
impl Send for VarValue
impl Sync for VarValue
impl Unpin for VarValue
impl UnsafeUnpin for VarValue
impl UnwindSafe for VarValue
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