pub enum InterpolationOperator {
Direct,
DefaultIfUnsetOrEmpty,
DefaultIfUnset,
RequiredIfUnsetOrEmpty,
RequiredIfUnset,
AlternativeIfSetAndNonEmpty,
AlternativeIfSet,
}Expand description
The operator used by one interpolation expression.
Variants§
Direct
$VAR or ${VAR}.
DefaultIfUnsetOrEmpty
${VAR:-default}.
DefaultIfUnset
${VAR-default}.
RequiredIfUnsetOrEmpty
${VAR:?message}.
RequiredIfUnset
${VAR?message}.
AlternativeIfSetAndNonEmpty
${VAR:+alternative}.
AlternativeIfSet
${VAR+alternative}.
Trait Implementations§
Source§impl Clone for InterpolationOperator
impl Clone for InterpolationOperator
impl Copy for InterpolationOperator
Source§impl Debug for InterpolationOperator
impl Debug for InterpolationOperator
impl Eq for InterpolationOperator
Source§impl Hash for InterpolationOperator
impl Hash for InterpolationOperator
Source§impl PartialEq for InterpolationOperator
impl PartialEq for InterpolationOperator
impl StructuralPartialEq for InterpolationOperator
Auto Trait Implementations§
impl Freeze for InterpolationOperator
impl RefUnwindSafe for InterpolationOperator
impl Send for InterpolationOperator
impl Sync for InterpolationOperator
impl Unpin for InterpolationOperator
impl UnsafeUnpin for InterpolationOperator
impl UnwindSafe for InterpolationOperator
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