pub struct RefSite {
pub target: Label,
pub display: RefDisplayOptions,
pub shown: bool,
}Expand description
A reference site: one place in a document that points at a reference
point, such as a \ref, a \hyperref, a proof’s
back-reference to its theorem, or a link to a defined term.
An element declares the reference sites of each occurrence through the
Referencing aspect, and the refs feature
(crate::stdlib::features::refs) resolves them. A node carries zero or
more sites. See reference points, labels and
anchors.
Fields§
§target: LabelThe label this site points at. The refs feature looks it up among the labels collected from every reference point of the document.
display: RefDisplayOptionsHow the resolved target is presented here.
shown: boolWhether the site is shown in the output. A site that is not shown still
records the connection between the two places, from which a list of
what points at a target is built: a proof written [**thm:a] refers to
the theorem without showing a reference in its heading. The element
that declares the site reads this field where it writes the site (a
theorem’s heading shows a proof’s back-reference only when the site is
shown); the refs feature resolves every site in the same way.
Trait Implementations§
impl Eq for RefSite
impl StructuralPartialEq for RefSite
Auto Trait Implementations§
impl Forget for RefSite
impl Freeze for RefSite
impl Move for RefSite
impl RefUnwindSafe for RefSite
impl Send for RefSitewhere
RawVecInner: Send,
impl Sync for RefSitewhere
RawVecInner: Sync,
impl Unpin for RefSite
impl UnsafeUnpin for RefSite
impl UnwindSafe for RefSitewhere
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