pub enum ColumnAlignment {
None,
Left,
Center,
Right,
}Expand description
Per-column table alignment declared in GFM source (|:--| left,
|:-:| center, |--:| right; a bare |---| is ColumnAlignment::None).
This is source-faithful: it records only what the author wrote, so the
editor and any AST consumer see the same alignment the source declares.
Numeric auto-right-alignment (for columns the author left unaligned) is a
render-time transform in ast::render, deliberately not stored here.
Variants§
Trait Implementations§
Source§impl Clone for ColumnAlignment
impl Clone for ColumnAlignment
Source§fn clone(&self) -> ColumnAlignment
fn clone(&self) -> ColumnAlignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColumnAlignment
Source§impl Debug for ColumnAlignment
impl Debug for ColumnAlignment
Source§impl<'de> Deserialize<'de> for ColumnAlignment
impl<'de> Deserialize<'de> for ColumnAlignment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ColumnAlignment
Source§impl Hash for ColumnAlignment
impl Hash for ColumnAlignment
Source§impl PartialEq for ColumnAlignment
impl PartialEq for ColumnAlignment
Source§impl Serialize for ColumnAlignment
impl Serialize for ColumnAlignment
impl StructuralPartialEq for ColumnAlignment
Auto Trait Implementations§
impl Freeze for ColumnAlignment
impl RefUnwindSafe for ColumnAlignment
impl Send for ColumnAlignment
impl Sync for ColumnAlignment
impl Unpin for ColumnAlignment
impl UnsafeUnpin for ColumnAlignment
impl UnwindSafe for ColumnAlignment
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.