pub struct AnchorCollision {
pub anchor: String,
pub first: String,
pub second: String,
}Expand description
The error that is reported when two reference points receive the same
anchor (flm.refs.anchor-collision).
An anchor is the identifier that a link points to, such as the id
attribute of an HTML element (ANCHORS). Two points receive the same
anchor, for instance, when two different labels give the same anchor
(label_anchor), or when the element of a point sets the anchor itself
(AnchorPolicy::Explicit). An anchor formed from a title never
collides: it receives a number suffix instead, as in sec--Examples-2.
Reported by the anchors stage (ANCHORS_STAGE) at the later point. The
first point in document order keeps the anchor. The later point receives no
anchor, so no link leads to it, and a reference to one of its labels is
unresolved (Unresolved).
Fields§
§anchor: StringThe anchor that both points receive.
first: StringThe point that keeps the anchor. It is given by its first label, by the
title that its anchor is formed from, or by its reference kind followed
by its position among the points of that kind, as in equation 3.
second: StringThe later point, which receives no anchor, given in the same way.
Implementations§
Trait Implementations§
Source§impl Clone for AnchorCollision
impl Clone for AnchorCollision
Source§impl Debug for AnchorCollision
impl Debug for AnchorCollision
Source§impl DiagnosticInfo for AnchorCollision
impl DiagnosticInfo for AnchorCollision
Source§const IDENTIFIER: &'static str = "flm.refs.anchor-collision"
const IDENTIFIER: &'static str = "flm.refs.anchor-collision"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Source§impl Display for AnchorCollision
impl Display for AnchorCollision
impl Eq for AnchorCollision
Source§impl PartialEq for AnchorCollision
impl PartialEq for AnchorCollision
impl StructuralPartialEq for AnchorCollision
Auto Trait Implementations§
impl Forget for AnchorCollision
impl Freeze for AnchorCollision
impl Move for AnchorCollision
impl RefUnwindSafe for AnchorCollision
impl Send for AnchorCollision
impl Sync for AnchorCollision
impl Unpin for AnchorCollision
impl UnsafeUnpin for AnchorCollision
impl UnwindSafe for AnchorCollision
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<T> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).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