pub enum Designation {
Number(Vec<NumberSegment>),
Content(Arc<NodeTree<Flm>>),
Label(String),
}Expand description
What a reference to a label shows, as designation gives it: the
number, the content or the label of the module documentation’s “What a
\ref shows”.
Variants§
Number(Vec<NumberSegment>)
The number the document gave the label’s reference point, as the
segments its counter style writes, the word before it included
(Thm. 1).
Content(Arc<NodeTree<Flm>>)
The content the label’s reference point shows where it has no number (a heading’s title), as a synthesized value.
Label(String)
The label itself, as written: its reference point has nothing to show.
Implementations§
Source§impl Designation
impl Designation
Sourcepub fn plain_text(&self) -> String
pub fn plain_text(&self) -> String
Returns the text of the designation: of each segment of a number in turn, of the content, or the label.
The text of a number’s segment or of the content is the characters of
its text nodes, with each whitespace node (~, \ ) written as one
space, so Thm. 1; any other command contributes nothing, as in the
plain text of content. Nothing is trimmed or collapsed.
Trait Implementations§
Source§impl Clone for Designation
impl Clone for Designation
Auto Trait Implementations§
impl !RefUnwindSafe for Designation
impl !UnwindSafe for Designation
impl Forget for Designation
impl Freeze for Designation
impl Move for Designation
impl Send for Designation
impl Sync for Designation
impl Unpin for Designation
impl UnsafeUnpin for Designation
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> 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