pub struct LinkRenderParams<'a> {
pub target: String,
pub link_text: String,
pub extra_roles: Vec<&'a str>,
pub window: Option<&'static str>,
pub type_: LinkRenderType,
pub attrlist: &'a Attrlist<'a>,
pub parser: &'a Parser,
}Expand description
Provides parsed parameters for an icon to be rendered.
Fields§
§target: StringTarget (the target of this link).
link_text: StringLink text.
extra_roles: Vec<&'a str>Roles (CSS classes) for this link not specified in the attrlist.
window: Option<&'static str>Target window selection (passed through to window function in HTML).
type_: LinkRenderTypeWhat type of link is being rendered?
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 LinkRenderParams<'a>
impl<'a> Clone for LinkRenderParams<'a>
Source§fn clone(&self) -> LinkRenderParams<'a>
fn clone(&self) -> LinkRenderParams<'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 LinkRenderParams<'a>
impl<'a> !RefUnwindSafe for LinkRenderParams<'a>
impl<'a> !Send for LinkRenderParams<'a>
impl<'a> !Sync for LinkRenderParams<'a>
impl<'a> Unpin for LinkRenderParams<'a>
impl<'a> !UnwindSafe for LinkRenderParams<'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