pub enum DirectiveKind {
Set,
Image,
Figure,
Bibliography,
}Expand description
Tag for the directive shapes Item::Set can represent: the
#set <target>(...) configuration directive vs the standalone
#image(...), #figure(...), and #bibliography(...) calls. The
lowerer dispatches on this rather than the Item::Set::name string
so #set image(...) can never collide with #image(...).
Variants§
Set
#set <name>(...): sets defaults on a style target.
Image
#image("path", ...): raster image directive.
Figure
#figure(image: ..., caption: ...): captioned image container.
Bibliography
#bibliography("refs.bib"): declares a bibliography source
database. The lowerer records the (source-relative) path so a
later BibTeX-parsing slice can read it; citation resolution and
rendering are not part of this directive.
Trait Implementations§
Source§impl Clone for DirectiveKind
impl Clone for DirectiveKind
Source§fn clone(&self) -> DirectiveKind
fn clone(&self) -> DirectiveKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectiveKind
impl Debug for DirectiveKind
Source§impl PartialEq for DirectiveKind
impl PartialEq for DirectiveKind
impl Copy for DirectiveKind
impl Eq for DirectiveKind
impl StructuralPartialEq for DirectiveKind
Auto Trait Implementations§
impl Freeze for DirectiveKind
impl RefUnwindSafe for DirectiveKind
impl Send for DirectiveKind
impl Sync for DirectiveKind
impl Unpin for DirectiveKind
impl UnsafeUnpin for DirectiveKind
impl UnwindSafe for DirectiveKind
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