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