pub struct Header<'src> { /* private fields */ }
Expand description
An AsciiDoc document may begin with a document header. The document header encapsulates the document title, author and revision information, document-wide attributes, and other document metadata.
Implementations§
Source§impl<'src> Header<'src>
impl<'src> Header<'src>
Sourcepub fn title_source(&'src self) -> Option<Span<'src>>
pub fn title_source(&'src self) -> Option<Span<'src>>
Return a Span
describing the raw document title, if there was one.
Sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Return the document’s title, if there was one, having applied header substitutions.
Sourcepub fn attributes(&'src self) -> Iter<'src, Attribute<'src>>
pub fn attributes(&'src self) -> Iter<'src, Attribute<'src>>
Return an iterator over the attributes in this header.
Trait Implementations§
impl<'src> Eq for Header<'src>
impl<'src> StructuralPartialEq for Header<'src>
Auto Trait Implementations§
impl<'src> Freeze for Header<'src>
impl<'src> RefUnwindSafe for Header<'src>
impl<'src> Send for Header<'src>
impl<'src> Sync for Header<'src>
impl<'src> Unpin for Header<'src>
impl<'src> UnwindSafe for Header<'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