pub struct ImageRenderParams<'a> {
pub target: &'a str,
pub alt: String,
pub width: Option<&'a str>,
pub height: Option<&'a str>,
pub attrlist: &'a Attrlist<'a>,
pub parser: &'a Parser,
}Expand description
Provides parsed parameters for an image to be rendered.
Fields§
§target: &'a strTarget (the reference to the image).
alt: StringAlt text (either explicitly set or defaulted).
width: Option<&'a str>Width. The data type is not checked; this may be any string.
height: Option<&'a str>Height. The data type is not checked; this may be any string.
attrlist: &'a Attrlist<'a>Attribute list.
parser: &'a ParserParser. The rendered may find document settings (such as an image directory) in the parser’s document attributes.
Trait Implementations§
Source§impl<'a> Clone for ImageRenderParams<'a>
impl<'a> Clone for ImageRenderParams<'a>
Source§fn clone(&self) -> ImageRenderParams<'a>
fn clone(&self) -> ImageRenderParams<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ImageRenderParams<'a>
impl<'a> !RefUnwindSafe for ImageRenderParams<'a>
impl<'a> !Send for ImageRenderParams<'a>
impl<'a> !Sync for ImageRenderParams<'a>
impl<'a> Unpin for ImageRenderParams<'a>
impl<'a> !UnwindSafe for ImageRenderParams<'a>
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