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
Creates and returns a new instance.
pub 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
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
Mutably borrows from an owned value. Read more