[][src]Struct vimwiki::elements::Table

pub struct Table<'a> {
    pub rows: Vec<Located<Row<'a>>>,
    pub centered: bool,
}

Fields

rows: Vec<Located<Row<'a>>>centered: bool

Implementations

impl<'a> Table<'a>[src]

pub fn new(rows: Vec<Located<Row<'a>>>, centered: bool) -> Table<'a>[src]

impl<'_> Table<'_>[src]

pub fn to_borrowed(&self) -> Table<'_>[src]

pub fn into_owned(self) -> Table<'static>[src]

impl<'a> Table<'a>[src]

pub fn get_column_alignment(&self, col: usize) -> ColumnAlign[src]

Returns the alignment of the specified column within the table

NOTE: This will always return an alignment, even if the column does not exist, by using the default column alignment

pub fn get_cell(&self, row: usize, col: usize) -> Option<&Located<Cell<'a>>>[src]

Returns reference to the cell found at the specified row and column

pub fn into_children(self) -> Vec<Located<InlineElement<'a>>>[src]

Trait Implementations

impl<'a> Clone for Table<'a>[src]

impl<'a> Debug for Table<'a>[src]

impl<'de, 'a> Deserialize<'de> for Table<'a>[src]

impl<'a> Eq for Table<'a>[src]

impl<'a> From<Table<'a>> for BlockElement<'a>[src]

impl<'a> From<Table<'a>> for Element<'a>[src]

impl<'a> Hash for Table<'a>[src]

impl<'a> PartialEq<Table<'a>> for Table<'a>[src]

impl<'a> Serialize for Table<'a>[src]

impl<'a> StructuralEq for Table<'a>[src]

impl<'a> StructuralPartialEq for Table<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Table<'a>

impl<'a> Send for Table<'a>

impl<'a> Sync for Table<'a>

impl<'a> Unpin for Table<'a>

impl<'a> UnwindSafe for Table<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.