[][src]Struct marks::result::Header

pub struct Header<'a> {
    pub args: &'a Args,
    pub line: usize,
    pub depth: usize,
    pub content: String,
    pub tags: Vec<String>,
    pub properties: HashMap<String, String>,
}

Fields

args: &'a Args

Args

line: usize

On which line is the header found.

depth: usize

This usually means the count of # (for md) or * (for org) at the beginning of the header line.

content: String

The header itself, stripped from tags or other annotations.

tags: Vec<String>

Tags found in the header. Means nothing for markdown headers.

properties: HashMap<String, String>

Properties found in :PROPERTIES: block of an org header. Means nothing for markdown headers.

Implementations

impl<'a> Header<'a>[src]

pub fn new(args: &Args) -> Header<'_>[src]

Trait Implementations

impl<'a> Clone for Header<'a>[src]

impl<'a> Debug for Header<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Header<'a>[src]

impl<'a> Send for Header<'a>[src]

impl<'a> Sync for Header<'a>[src]

impl<'a> Unpin for Header<'a>[src]

impl<'a> UnwindSafe for Header<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.