pub struct Metadata { /* private fields */ }
Expand description
Metadata of a document, as needed by Subplot.
Implementations
sourceimpl Metadata
impl Metadata
sourcepub fn new<P>(
basedir: P,
doc: &Pandoc,
template: Option<&str>
) -> Result<Metadata, SubplotError> where
P: AsRef<Path> + Debug,
pub fn new<P>(
basedir: P,
doc: &Pandoc,
template: Option<&str>
) -> Result<Metadata, SubplotError> where
P: AsRef<Path> + Debug,
Construct a Metadata from a Document, if possible.
sourcepub fn bindings_filenames(&self) -> Vec<&Path>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn bindings_filenames(&self) -> Vec<&Path>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Return filename where bindings are specified.
sourcepub fn document_impl(&self, template: &str) -> Option<&DocumentImpl>
pub fn document_impl(&self, template: &str) -> Option<&DocumentImpl>
Return the document implementation (filenames, spec, etc) for the given template name
sourcepub fn templates(&self) -> impl Iterator<Item = &str>
pub fn templates(&self) -> impl Iterator<Item = &str>
Return the templates the document expects to implement
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more