pub struct RefElement;Expand description
The per-value data of the flm.ref element, and the element’s
Referencing implementation: it returns the reference sites a \ref
node declares, one per target spelled type:label. See the module
documentation.
Trait Implementations§
Source§impl ApartFromText for RefElement
The target of a \ref (its argument TARGET_ARG) and its display
options (its argument OPTIONS_ARG) are not words of the text around
the reference: they are instructions to the reference. A heading whose
title holds a \ref is identified by the title’s own words, without the
target and the options.
impl ApartFromText for RefElement
The target of a \ref (its argument TARGET_ARG) and its display
options (its argument OPTIONS_ARG) are not words of the text around
the reference: they are instructions to the reference. A heading whose
title holds a \ref is identified by the title’s own words, without the
target and the options.
Source§fn apart_from_text(&self, _node: &NodeRef<'_, Flm>) -> Vec<ContentRef>
fn apart_from_text(&self, _node: &NodeRef<'_, Flm>) -> Vec<ContentRef>
node.Source§impl Clone for RefElement
impl Clone for RefElement
impl Copy for RefElement
Source§impl Debug for RefElement
impl Debug for RefElement
impl Eq for RefElement
Source§impl PartialEq for RefElement
impl PartialEq for RefElement
Source§impl Referencing for RefElement
impl Referencing for RefElement
Source§fn sites(&self, node: &NodeRef<'_, Flm>) -> Vec<RefSite>
fn sites(&self, node: &NodeRef<'_, Flm>) -> Vec<RefSite>
One site per target of the \ref that is spelled type:label, in the
order the targets were written, all with the node’s own display
options. A target that is not a label declares no site, so the index
of a site is its place among the labeled targets, not among all
targets; lower_reference counts the same
way.
impl StructuralPartialEq for RefElement
Auto Trait Implementations§
impl Forget for RefElement
impl Freeze for RefElement
impl Move for RefElement
impl RefUnwindSafe for RefElement
impl Send for RefElement
impl Sync for RefElement
impl Unpin for RefElement
impl UnsafeUnpin for RefElement
impl UnwindSafe for RefElement
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