pub struct Theorems { /* private fields */ }Expand description
The theorems feature (FlmFeature): it registers one element value of
THEOREM per kind of its TheoremsConfig, each written as the
environment of the kind’s name, together with the heading elements, the
lowering rules, the check stage, and the counters and counter styles of the
numbered kinds (contributed to the numbering feature). See the module
documentation.
Construct it with Theorems::new, or use feature for the default
configuration. Registering it fails with BuildError::Feature when the
configuration is refused by TheoremsConfig::validate, and the registry
build fails when a heading template, a closing mark or a word does not
compile.
Implementations§
Source§impl Theorems
impl Theorems
Sourcepub fn new(config: TheoremsConfig) -> Theorems
pub fn new(config: TheoremsConfig) -> Theorems
Creates the feature with the configuration config, which is fixed for
the life of the registry the feature is registered into.
Sourcepub fn config(&self) -> &TheoremsConfig
pub fn config(&self) -> &TheoremsConfig
The configuration this feature was constructed with.
Trait Implementations§
Source§impl FlmFeature for Theorems
impl FlmFeature for Theorems
Source§fn info(&self) -> FeatureInfo
fn info(&self) -> FeatureInfo
Source§fn settings(&self) -> Option<SettingsDecl>
fn settings(&self) -> Option<SettingsDecl>
None
for a feature that takes no settings as data. The default
implementation returns None. See crate::core::settings. Read moreSource§fn register(&self, b: &mut FeatureBuilder<'_>) -> Result<(), BuildError>
fn register(&self, b: &mut FeatureBuilder<'_>) -> Result<(), BuildError>
b. Read moreAuto Trait Implementations§
impl Forget for Theorems
impl Freeze for Theoremswhere
*const LeafNode<Name, TheoremClass> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Name, TheoremClass)>>: Freeze,
*const LeafNode<Name, TheoremKind> is !null: Freeze,
PhantomData<Box<(Name, TheoremKind)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
impl Move for Theorems
impl RefUnwindSafe for Theorems
impl Send for Theoremswhere
NodeRef<Owned, Name, TheoremClass, LeafOrInternal>: Send,
BoxRaw<(Name, TheoremClass)>: Send,
NodeRef<Owned, Name, TheoremKind, LeafOrInternal>: Send,
BoxRaw<(Name, TheoremKind)>: Send,
RawVecInner: Send,
impl Sync for Theoremswhere
NodeRef<Owned, Name, TheoremClass, LeafOrInternal>: Sync,
BoxRaw<(Name, TheoremClass)>: Sync,
NodeRef<Owned, Name, TheoremKind, LeafOrInternal>: Sync,
BoxRaw<(Name, TheoremKind)>: Sync,
RawVecInner: Sync,
impl Unpin for Theoremswhere
*const LeafNode<Name, TheoremClass> is !null: Unpin,
Box<(Name, TheoremClass)>: Unpin,
*const LeafNode<Name, TheoremKind> is !null: Unpin,
Box<(Name, TheoremKind)>: Unpin,
*const u8 is !null: Unpin,
impl UnsafeUnpin for Theoremswhere
*const LeafNode<Name, TheoremClass> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Name, TheoremClass)>>: UnsafeUnpin,
*const LeafNode<Name, TheoremKind> is !null: UnsafeUnpin,
PhantomData<Box<(Name, TheoremKind)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Theoremswhere
BTreeMap<Name, TheoremClass>: UnwindSafe,
BTreeMap<Name, TheoremKind>: UnwindSafe,
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<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