pub enum DirectiveKind {
Set,
Image,
Figure,
}Expand description
Tag for the three directive shapes Item::Set can represent —
the #set <target>(...) configuration directive vs the standalone
#image(...) and #figure(...) 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.
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 (const: unstable) · 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
Source§fn eq(&self, other: &DirectiveKind) -> bool
fn eq(&self, other: &DirectiveKind) -> bool
Tests for
self and other values to be equal, and is used by ==.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