pub struct XrefRenderParams<'a> {
pub target: &'a str,
pub provided_text: Option<&'a str>,
pub resolved: Option<&'a ResolvedReference>,
}Expand description
Provides parameters for rendering a cross-reference.
Fields§
§target: &'a strThe raw, uninterpreted cross-reference target as written in the source.
provided_text: Option<&'a str>Explicit link text supplied in the cross-reference, if any.
resolved: Option<&'a ResolvedReference>The resolved destination, or None if the reference is unresolved.
Trait Implementations§
Source§impl<'a> Clone for XrefRenderParams<'a>
impl<'a> Clone for XrefRenderParams<'a>
Source§fn clone(&self) -> XrefRenderParams<'a>
fn clone(&self) -> XrefRenderParams<'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> Freeze for XrefRenderParams<'a>
impl<'a> RefUnwindSafe for XrefRenderParams<'a>
impl<'a> Send for XrefRenderParams<'a>
impl<'a> Sync for XrefRenderParams<'a>
impl<'a> Unpin for XrefRenderParams<'a>
impl<'a> UnsafeUnpin for XrefRenderParams<'a>
impl<'a> UnwindSafe for XrefRenderParams<'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