pub enum TitleReading {
Absent,
Title,
Relation {
text: String,
label: Label,
shown: bool,
},
Malformed,
Unknown,
}Expand description
What a theorem’s title argument is, as title_reading reads it: no
title, a title, a back-reference, a malformed back-reference, or not yet
known.
Variants§
Absent
No title argument is written.
Title
A title, shown as the theorem’s own content.
Relation
A back-reference to the statement labeled label: shown in the
heading where shown (one star), recorded only where not (two stars).
Fields
Malformed
A title beginning with a star, on a kind that reads back-references,
that is not one run of characters or whose text after the stars is
not of the form type:label. It declares no reference site; the
feature’s check reports it (BadRelationRef),
and the theorem’s rules show the title as written.
Unknown
A title in the template of a kept definition (a user definition whose
use sites a plan leaves in the tree; see kept
definitions), with a
placeholder where a back-reference’s first characters would be:
whether it is a back-reference is not known until the
template is called. It declares no reference site, and the theorem’s
rules return
LowerError::PlaceholderCharacters,
so that each use site of the definition is expanded instead.
Trait Implementations§
Source§impl Clone for TitleReading
impl Clone for TitleReading
Source§impl Debug for TitleReading
impl Debug for TitleReading
impl Eq for TitleReading
Source§impl PartialEq for TitleReading
impl PartialEq for TitleReading
impl StructuralPartialEq for TitleReading
Auto Trait Implementations§
impl Forget for TitleReading
impl Freeze for TitleReading
impl Move for TitleReading
impl RefUnwindSafe for TitleReading
impl Send for TitleReading
impl Sync for TitleReading
impl Unpin for TitleReading
impl UnsafeUnpin for TitleReading
impl UnwindSafe for TitleReading
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