pub struct XnotesFeature { /* private fields */ }Expand description
The xnotes feature, an FlmFeature: footnotes and the other xnote
kinds.
From its XnotesConfig, it declares the service slot of xnote kinds
KINDS_SLOT, every configured xnote kind through contribute_kind,
one element value of XNOTE per xnote kind that has commands, the
synthesized elements ENTRY, MARK_OF and CONTENT_POINTER, the
table XNOTES and the collect stage that writes it, the lowering rules
of those elements on every backend, and the stylesheet STYLE. The
module documentation describes what each does.
Registering the feature fails with BuildError::Feature when the
configuration fails XnotesConfig::validate.
Implementations§
Source§impl XnotesFeature
impl XnotesFeature
Sourcepub fn new(config: XnotesConfig) -> XnotesFeature
pub fn new(config: XnotesConfig) -> XnotesFeature
The feature with the configuration config. A feature’s configuration
is the plain Rust value the feature is constructed from; it is fixed
when the registry is built and cannot vary per document or per render
(see settings, options and
configuration).
Sourcepub fn config(&self) -> &XnotesConfig
pub fn config(&self) -> &XnotesConfig
The configuration this feature was constructed with.
Trait Implementations§
Source§impl Clone for XnotesFeature
impl Clone for XnotesFeature
Source§impl Debug for XnotesFeature
impl Debug for XnotesFeature
Source§impl Default for XnotesFeature
impl Default for XnotesFeature
Source§impl FlmFeature for XnotesFeature
impl FlmFeature for XnotesFeature
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 XnotesFeature
impl Freeze for XnotesFeature
impl Move for XnotesFeature
impl RefUnwindSafe for XnotesFeature
impl Send for XnotesFeature
impl Sync for XnotesFeature
impl Unpin for XnotesFeature
impl UnsafeUnpin for XnotesFeature
impl UnwindSafe for XnotesFeature
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