pub struct StructuralElementSpecs {Show 13 fields
pub text: ElementSpec,
pub comment: ElementSpec,
pub container: ElementSpec,
pub group: ElementSpec,
pub math: ElementSpec,
pub verbatim: ElementSpec,
pub opaque_wrapper: ElementSpec,
pub paragraph: ElementSpec,
pub parbreak: ElementSpec,
pub placeholder: ElementSpec,
pub field: ElementSpec,
pub unknown_macro: ElementSpec,
pub unknown_environment: ElementSpec,
}Expand description
The structural elements while they can still be changed: one element value
per node shape, to which the registry attaches the features’ aspects before
it freezes the set into a StructuralElements with
StructuralElements::new.
StructuralElementSpecs::default is the set FLM starts from. Change an
element with get_mut.
Fields§
§text: ElementSpecThe element of text nodes; inline content. See TEXT.
comment: ElementSpecThe element of source comment nodes; inline content, and they render
nothing. See COMMENT.
container: ElementSpecThe element of list nodes, containers that hold content without meaning
anything themselves. See CONTAINER.
group: ElementSpecThe element of content groups, and of groups the library creates
without a group class; inline content. See GROUP.
math: ElementSpecThe element of mathematics groups; a displayed
item for display mathematics (\[…\],
$$…$$) and inline content for inline mathematics (\(…\), $…$),
as its block role aspect reads from the group’s form. See MATH.
verbatim: ElementSpecThe element of verbatim groups; inline content. See VERBATIM.
opaque_wrapper: ElementSpecThe element of opaque wrappers; inline content, like a verbatim group.
See OPAQUE_WRAPPER.
paragraph: ElementSpecThe element of paragraphs; block content. See PARAGRAPH.
parbreak: ElementSpecThe element of paragraph-break nodes. It has no block role: the node
separates blocks and is not a block. See PARBREAK.
placeholder: ElementSpecThe element of placeholder nodes; no block role. See PLACEHOLDER.
field: ElementSpecThe element of field nodes; inline content. See FIELD.
unknown_macro: ElementSpecThe element of a macro no feature defines; inline content. See
UNKNOWN_MACRO.
unknown_environment: ElementSpecThe element of an environment no feature defines; block content. See
UNKNOWN_ENVIRONMENT.
Implementations§
Trait Implementations§
Source§impl Clone for StructuralElementSpecs
impl Clone for StructuralElementSpecs
Source§impl Debug for StructuralElementSpecs
impl Debug for StructuralElementSpecs
Source§impl Default for StructuralElementSpecs
impl Default for StructuralElementSpecs
Source§fn default() -> StructuralElementSpecs
fn default() -> StructuralElementSpecs
Returns the set FLM starts from, with a block role
(BlockRoleAspect) attached where the node shape has one.
Text, comments, groups, verbatim groups, opaque wrappers, fields and a
macro no feature defines are inline content. A mathematics group is a
displayed item or inline content, according to its form
(math). A paragraph and an environment no feature defines
are blocks. The paragraph-break node and the placeholder have no block
role, and neither does the container: the library asks a container’s
children for their roles, not the container, and an element without the
aspect counts as inline content
(block_role_of).
Auto Trait Implementations§
impl !RefUnwindSafe for StructuralElementSpecs
impl !UnwindSafe for StructuralElementSpecs
impl Forget for StructuralElementSpecs
impl Freeze for StructuralElementSpecs
impl Move for StructuralElementSpecs
impl Send for StructuralElementSpecs
impl Sync for StructuralElementSpecs
impl Unpin for StructuralElementSpecs
impl UnsafeUnpin for StructuralElementSpecs
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