pub enum MetaVarStyle {
None,
Web,
Pdf,
}Expand description
Which plain-text identity variables a writer’s standalone template draws on. The document’s
title, authors, and date are exposed as markup-free, target-escaped text for places that cannot
carry markup — a web document head or a PDF document’s properties. See Writer::meta_var_style.
Variants§
None
The format exposes none of these variables.
Web
A web document head: pagetitle (the title, falling back to the source name), date-meta
(the date), and author-meta (the authors, one list entry each).
A PDF document’s properties: title-meta (the title) and author-meta (the authors joined
into one string with ; ).
Trait Implementations§
Source§impl Clone for MetaVarStyle
impl Clone for MetaVarStyle
Source§fn clone(&self) -> MetaVarStyle
fn clone(&self) -> MetaVarStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetaVarStyle
Source§impl Debug for MetaVarStyle
impl Debug for MetaVarStyle
Source§impl Default for MetaVarStyle
impl Default for MetaVarStyle
Source§fn default() -> MetaVarStyle
fn default() -> MetaVarStyle
Returns the “default value” for a type. Read more
impl Eq for MetaVarStyle
Source§impl PartialEq for MetaVarStyle
impl PartialEq for MetaVarStyle
Source§fn eq(&self, other: &MetaVarStyle) -> bool
fn eq(&self, other: &MetaVarStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetaVarStyle
Auto Trait Implementations§
impl Freeze for MetaVarStyle
impl RefUnwindSafe for MetaVarStyle
impl Send for MetaVarStyle
impl Sync for MetaVarStyle
impl Unpin for MetaVarStyle
impl UnsafeUnpin for MetaVarStyle
impl UnwindSafe for MetaVarStyle
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