pub enum RawAttributeValue<'src> {
Value(Span<'src>),
Set,
Unset,
}
Expand description
The raw value of an Attribute
.
If the value contains a textual value, this value will contain continuation markers.
Variants§
Value(Span<'src>)
A custom value, described by its accompanying Span
.
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
.
Implementations§
Source§impl<'src> RawAttributeValue<'src>
impl<'src> RawAttributeValue<'src>
Sourcepub fn as_interpreted_value(&self) -> InterpretedValue<'src>
pub fn as_interpreted_value(&self) -> InterpretedValue<'src>
Convert this to an InterpretedValue
, resolving any interpolation
necessary if the value contains a textual value.
Trait Implementations§
Source§impl<'src> Clone for RawAttributeValue<'src>
impl<'src> Clone for RawAttributeValue<'src>
Source§fn clone(&self) -> RawAttributeValue<'src>
fn clone(&self) -> RawAttributeValue<'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 RawAttributeValue<'src>
impl<'src> Debug for RawAttributeValue<'src>
Source§impl<'src> PartialEq for RawAttributeValue<'src>
impl<'src> PartialEq for RawAttributeValue<'src>
Source§fn eq(&self, other: &RawAttributeValue<'src>) -> bool
fn eq(&self, other: &RawAttributeValue<'src>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'src> Eq for RawAttributeValue<'src>
impl<'src> StructuralPartialEq for RawAttributeValue<'src>
Auto Trait Implementations§
impl<'src> Freeze for RawAttributeValue<'src>
impl<'src> RefUnwindSafe for RawAttributeValue<'src>
impl<'src> Send for RawAttributeValue<'src>
impl<'src> Sync for RawAttributeValue<'src>
impl<'src> Unpin for RawAttributeValue<'src>
impl<'src> UnwindSafe for RawAttributeValue<'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