pub enum InterpretedValue<'src> {
Value(CowStr<'src>),
Set,
Unset,
}
Expand description
Variants§
Value(CowStr<'src>)
A custom value with all necessary interpolations applied.
Set
No explicit value. This is typically interpreted as either
boolean true
or a default value for a built-in attribute.
Unset
Explicitly unset. This is typically interpreted as boolean false
.
Trait Implementations§
Source§impl<'src> Clone for InterpretedValue<'src>
impl<'src> Clone for InterpretedValue<'src>
Source§fn clone(&self) -> InterpretedValue<'src>
fn clone(&self) -> InterpretedValue<'src>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'src> Debug for InterpretedValue<'src>
impl<'src> Debug for InterpretedValue<'src>
Source§impl<'src> PartialEq for InterpretedValue<'src>
impl<'src> PartialEq for InterpretedValue<'src>
Source§fn eq(&self, other: &InterpretedValue<'src>) -> bool
fn eq(&self, other: &InterpretedValue<'src>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'src> Eq for InterpretedValue<'src>
impl<'src> StructuralPartialEq for InterpretedValue<'src>
Auto Trait Implementations§
impl<'src> Freeze for InterpretedValue<'src>
impl<'src> RefUnwindSafe for InterpretedValue<'src>
impl<'src> Send for InterpretedValue<'src>
impl<'src> Sync for InterpretedValue<'src>
impl<'src> Unpin for InterpretedValue<'src>
impl<'src> UnwindSafe for InterpretedValue<'src>
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