pub enum ImageDirective {
Image {
uri: String,
alt: Option<String>,
height: Option<String>,
width: Option<String>,
scale: Option<String>,
align: Option<String>,
target: Option<String>,
name: Option<String>,
class: Option<String>,
},
Figure {
uri: String,
name: Option<String>,
class: Option<String>,
alt: Option<String>,
height: Option<String>,
width: Option<String>,
scale: Option<String>,
align: Option<String>,
target: Option<String>,
figwidth: Option<FigWidth>,
figclass: Option<String>,
},
}
Expand description
An enumeration of different image types.
There are two image directives: image
and figure
.
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#images
Variants§
Image
§Image
An “image” is a simple picture.
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#image
Fields
Figure
A “figure” consists of image data (including image options), an optional caption (a single paragraph), and an optional legend (arbitrary body elements). For page-based output media, figures might float to a different position if this helps the page layout.
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#figure
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageDirective
impl RefUnwindSafe for ImageDirective
impl Send for ImageDirective
impl Sync for ImageDirective
impl Unpin for ImageDirective
impl UnwindSafe for ImageDirective
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