pub struct CalloutRenderParams<'a> {
pub number: &'a str,
pub guard: CalloutGuard<'a>,
pub parser: &'a Parser,
}Expand description
Provides parameters for rendering a callout number.
Fields§
§number: &'a strThe callout number to display. For automatically-numbered callouts
(<.>), this is the resolved sequential number.
guard: CalloutGuard<'a>The guard surrounding the callout in the source. This controls whether (and how) the line-comment or XML-comment characters that hide the callout in the raw source are preserved in the output when icons are not enabled.
parser: &'a ParserParser. The renderer reads the icons, iconsdir, and icontype
document attributes to decide how to render the callout.
Trait Implementations§
Source§impl<'a> Clone for CalloutRenderParams<'a>
impl<'a> Clone for CalloutRenderParams<'a>
Source§fn clone(&self) -> CalloutRenderParams<'a>
fn clone(&self) -> CalloutRenderParams<'a>
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 moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for CalloutRenderParams<'a>
impl<'a> !Send for CalloutRenderParams<'a>
impl<'a> !Sync for CalloutRenderParams<'a>
impl<'a> !UnwindSafe for CalloutRenderParams<'a>
impl<'a> Freeze for CalloutRenderParams<'a>
impl<'a> Unpin for CalloutRenderParams<'a>
impl<'a> UnsafeUnpin for CalloutRenderParams<'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