pub struct RefDisplayOptions {
pub variant: Option<String>,
pub with_prefix: bool,
}Expand description
How one reference site presents the reference point it points at.
A prefix is the word a reference writes before the target’s number or
title, such as Section or Eq.; these options say which form of the
prefix to use and whether to show it. Each site records them through
Referencing, as the document wrote them in the brackets of
\ref[…]{…}, so that an output that leaves the formatting of references
to another program (such as the recomposed LaTeX) can write them back
unchanged.
The lowering rule that shows a reference reads them; the standard rule
translates them into the terms of the counter style when it writes a
target’s number
(lower_reference).
Fields§
§variant: Option<String>The name of the prefix form asked for at this site, or None to leave
the choice to the target.
with_prefix: boolWhether the prefix is shown before the target’s number or title.
Trait Implementations§
Source§impl Clone for RefDisplayOptions
impl Clone for RefDisplayOptions
Source§impl Debug for RefDisplayOptions
impl Debug for RefDisplayOptions
Source§impl Default for RefDisplayOptions
impl Default for RefDisplayOptions
Source§fn default() -> RefDisplayOptions
fn default() -> RefDisplayOptions
impl Eq for RefDisplayOptions
Source§impl Hash for RefDisplayOptions
impl Hash for RefDisplayOptions
Source§impl PartialEq for RefDisplayOptions
impl PartialEq for RefDisplayOptions
impl StructuralPartialEq for RefDisplayOptions
Auto Trait Implementations§
impl Forget for RefDisplayOptions
impl Freeze for RefDisplayOptions
impl Move for RefDisplayOptions
impl RefUnwindSafe for RefDisplayOptions
impl Send for RefDisplayOptionswhere
RawVecInner: Send,
impl Sync for RefDisplayOptionswhere
RawVecInner: Sync,
impl Unpin for RefDisplayOptions
impl UnsafeUnpin for RefDisplayOptions
impl UnwindSafe for RefDisplayOptionswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more