Struct envmnt::types::ExpandOptions
source · [−]pub struct ExpandOptions {
pub expansion_type: Option<ExpansionType>,
pub default_to_empty: bool,
}
Expand description
Expand options
Fields
expansion_type: Option<ExpansionType>
The expansion type (unix/windows/…)
default_to_empty: bool
If true (default), empty variables will be replaced with empty text, false to keep original variable untouched. This is ignored in case of expansion type: UnixBracketsWithDefaults and a default is provided.
Implementations
sourceimpl ExpandOptions
impl ExpandOptions
sourcepub fn new() -> ExpandOptions
pub fn new() -> ExpandOptions
Creates and returns a new instance.
sourcepub fn clone_with_expansion_type(
self: &ExpandOptions,
expansion_type: ExpansionType
) -> ExpandOptions
pub fn clone_with_expansion_type(
self: &ExpandOptions,
expansion_type: ExpansionType
) -> ExpandOptions
Clones and modifies the expansion type
Trait Implementations
sourceimpl Clone for ExpandOptions
impl Clone for ExpandOptions
sourcefn clone(&self) -> ExpandOptions
fn clone(&self) -> ExpandOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExpandOptions
impl Debug for ExpandOptions
impl Copy for ExpandOptions
Auto Trait Implementations
impl RefUnwindSafe for ExpandOptions
impl Send for ExpandOptions
impl Sync for ExpandOptions
impl Unpin for ExpandOptions
impl UnwindSafe for ExpandOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more