pub struct MarkSettings { /* private fields */ }Expand description
The feature’s settings as the lowering rules read them: the configuration, and its texts (the citation counter style, the note separator and the title of the list of cited works) compiled when the registry is built.
The feature creates one value per registration and shares it between its
rules; a build hook (LateInit) compiles the texts once the language is
built. Before that, the accessors that need the compiled texts return a
structure error, which a built registry never returns.
Implementations§
Source§impl MarkSettings
impl MarkSettings
Sourcepub fn config(&self) -> &CitationsConfig
pub fn config(&self) -> &CitationsConfig
Returns the configuration.
Sourcepub fn style(&self) -> Result<&CounterStyle, LowerError>
pub fn style(&self) -> Result<&CounterStyle, LowerError>
Returns the compiled citation counter style.
§Errors
A structure error (LowerError::structure) before the registry build
compiled the citation counter style.
Sourcepub fn heading_title(&self) -> Result<Option<&Arc<NodeTree<Flm>>>, LowerError>
pub fn heading_title(&self) -> Result<Option<&Arc<NodeTree<Flm>>>, LowerError>
Returns the compiled title of the heading above the list of cited works
(heading_title), or None for a
list with no heading.
§Errors
A structure error (LowerError::structure) before the registry build
compiled the title.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MarkSettings
impl !RefUnwindSafe for MarkSettings
impl !UnwindSafe for MarkSettings
impl Forget for MarkSettings
impl Move for MarkSettings
impl Send for MarkSettings
impl Sync for MarkSettings
impl Unpin for MarkSettings
impl UnsafeUnpin for MarkSettings
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> 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