#[non_exhaustive]pub enum XrefStyle {
Default,
Basic,
Short,
Full,
}Expand description
The display style for an automatic cross-reference.
Selected styles fall back to Self::Basic when the target has no number
or custom caption prefix. Explicit reference text takes precedence.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Use the target title as written, without automatic emphasis.
Basic
Use the target title, emphasizing chapter and appendix titles.
Short
Use only the target’s caption label and number or custom prefix.
Full
Use the caption prefix followed by the target title.
Trait Implementations§
impl Copy for XrefStyle
impl Eq for XrefStyle
impl StructuralPartialEq for XrefStyle
Auto Trait Implementations§
impl Freeze for XrefStyle
impl RefUnwindSafe for XrefStyle
impl Send for XrefStyle
impl Sync for XrefStyle
impl Unpin for XrefStyle
impl UnsafeUnpin for XrefStyle
impl UnwindSafe for XrefStyle
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