pub struct XrefSignifier {
pub label: String,
pub emphasize: bool,
}Expand description
A referenceable target’s signifier and reference number, used to build the
automatic text of a cross-reference for the Full and
Short styles (and to emphasize a chapter or appendix
title under Basic).
This carries only the target-derived pieces; how they are combined with the
target’s title is decided by the reference’s XrefStyle at render time.
Fields§
§label: StringThe signifier and reference number, already combined (e.g. "Section 2.3", "Figure 1", or just "2.3" when the target’s *-refsig
attribute is unset).
emphasize: boolWhether the target’s title is emphasized (rendered inside <em>) rather
than quoted. true for chapters and appendices.
Trait Implementations§
Source§impl Clone for XrefSignifier
impl Clone for XrefSignifier
Source§fn clone(&self) -> XrefSignifier
fn clone(&self) -> XrefSignifier
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 moreSource§impl Debug for XrefSignifier
impl Debug for XrefSignifier
impl Eq for XrefSignifier
Source§impl PartialEq for XrefSignifier
impl PartialEq for XrefSignifier
impl StructuralPartialEq for XrefSignifier
Auto Trait Implementations§
impl Freeze for XrefSignifier
impl RefUnwindSafe for XrefSignifier
impl Send for XrefSignifier
impl Sync for XrefSignifier
impl Unpin for XrefSignifier
impl UnsafeUnpin for XrefSignifier
impl UnwindSafe for XrefSignifier
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