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_attribute_value(&self) -> AttributeValue<'src>
pub fn as_attribute_value(&self) -> AttributeValue<'src>
Convert this to an AttributeValue, 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 copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
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>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)