Struct envmnt::types::ExpandOptions [−][src]
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: boolIf 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
) -> ExpandOptionsClones and modifies the expansion type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExpandOptionsimpl Send for ExpandOptionsimpl Sync for ExpandOptionsimpl Unpin for ExpandOptionsimpl UnwindSafe for ExpandOptionsBlanket Implementations
Mutably borrows from an owned value. Read more