pub struct Attribute<'src> { /* private fields */ }
Expand description
Document attributes are effectively document-scoped variables for the AsciiDoc language. The AsciiDoc language defines a set of built-in attributes, and also allows the author (or extensions) to define additional document attributes, which may replace built-in attributes when permitted.
Implementations§
Source§impl<'src> Attribute<'src>
impl<'src> Attribute<'src>
Sourcepub fn raw_value(&'src self) -> &'src RawAttributeValue<'src>
pub fn raw_value(&'src self) -> &'src RawAttributeValue<'src>
Return the attribute’s raw value.
Sourcepub fn value(&'src self) -> InterpretedValue<'src>
pub fn value(&'src self) -> InterpretedValue<'src>
Return the attribute’s interpolated value.
Trait Implementations§
impl<'src> Eq for Attribute<'src>
impl<'src> StructuralPartialEq for Attribute<'src>
Auto Trait Implementations§
impl<'src> Freeze for Attribute<'src>
impl<'src> RefUnwindSafe for Attribute<'src>
impl<'src> Send for Attribute<'src>
impl<'src> Sync for Attribute<'src>
impl<'src> Unpin for Attribute<'src>
impl<'src> UnwindSafe for Attribute<'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