pub struct FlattenGroupsConfig {
pub enabled: bool,
pub preserve_group_containing_declarative_command: bool,
pub preserve_group_in_script_base_slot: bool,
pub preserve_group_inside_env_body: bool,
pub preserve_group_containing_infix: bool,
pub preserve_group_adjacent_to_command_like: bool,
pub preserve_group_as_argument_of_command: bool,
pub preserve_group_after_scripted_command_like: bool,
pub preserve_empty_group: bool,
pub preserve_group_with_lone_atom_spacing_char: bool,
pub preserve_group_starting_with_atom_spacing_char: bool,
pub preserve_group_containing_delimited_pair: bool,
}Fields§
§enabled: bool§preserve_group_containing_declarative_command: boolSemantic guard. Keep groups whose subtree contains a declarative command
(for example \cal or \bf) to avoid leaking declarative scope into
following siblings.
preserve_group_in_script_base_slot: boolSemantic guard. Keep groups occupying a ScriptBase slot to avoid
changing which atom subscripts or superscripts attach to.
preserve_group_inside_env_body: boolSemantic guard. Keep all groups inside an environment body to preserve cell boundaries and intra-cell spacing.
preserve_group_containing_infix: boolSemantic guard. Keep a GroupChild whose subtree contains an
\over-style infix to preserve the infix scope.
preserve_group_adjacent_to_command_like: boolSpacing guard. Keep a GroupChild when its preceding sibling or its
first child is command-like.
preserve_group_as_argument_of_command: boolSpacing guard. Keep a risky group directly used as an argument of a command to preserve one spacing boundary without preserving redundant nesting.
preserve_group_after_scripted_command_like: boolSpacing guard (sub-flag). Recurse through Scripted bases when
classifying “command-like” for the adjacency check above.
preserve_empty_group: boolSpacing guard. Keep empty GroupChilds ({}) to preserve spacing and
kerning effects.
preserve_group_with_lone_atom_spacing_char: boolSpacing guard. Keep singleton groups containing only one math atom-spacing character.
preserve_group_starting_with_atom_spacing_char: boolSpacing guard. Keep multi-child GroupChilds whose first child is a
math atom-spacing character.
preserve_group_containing_delimited_pair: boolSpacing guard. Keep a GroupChild whose subtree contains a
\left...\right delimited group.
Implementations§
Trait Implementations§
Source§impl Clone for FlattenGroupsConfig
impl Clone for FlattenGroupsConfig
Source§fn clone(&self) -> FlattenGroupsConfig
fn clone(&self) -> FlattenGroupsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FlattenGroupsConfig
Source§impl Debug for FlattenGroupsConfig
impl Debug for FlattenGroupsConfig
impl Eq for FlattenGroupsConfig
Source§impl PartialEq for FlattenGroupsConfig
impl PartialEq for FlattenGroupsConfig
Source§fn eq(&self, other: &FlattenGroupsConfig) -> bool
fn eq(&self, other: &FlattenGroupsConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FlattenGroupsConfig
Auto Trait Implementations§
impl Freeze for FlattenGroupsConfig
impl RefUnwindSafe for FlattenGroupsConfig
impl Send for FlattenGroupsConfig
impl Sync for FlattenGroupsConfig
impl Unpin for FlattenGroupsConfig
impl UnsafeUnpin for FlattenGroupsConfig
impl UnwindSafe for FlattenGroupsConfig
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
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.