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
Source§fn clone(&self) -> InterpolationOperator
fn clone(&self) -> InterpolationOperator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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