pub enum Align {
Left,
LeftMarked,
Right,
Center,
}Expand description
Column alignment, from the separator row’s : markers.
Public from TB.1: super::model renders the same rows under the caret
that this module renders at content-build time, and it carries them in a
pub row type — a second copy of the alignment vocabulary is the
duplication the whole table/ directory exists to avoid.
Variants§
Left
No marker — the default, and what an unmarked --- column means.
LeftMarked
:--- — left, said out loud.
Distinct from Align::Left only so the marker ROUND-TRIPS. Both
render the same text; collapsing them would mean an interactive
realign silently deletes a : the author typed, which shows up in a
git diff of their notes as a change they did not make. TB.1 found
this; the unattended help pass gets the same fidelity for free.
Right
---: — cells padded on the left.
Center
:---: — padding split around the cell (extra space on the right).
Trait Implementations§
impl Copy for Align
impl Eq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Align
impl UnwindSafe for Align
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.