summaryrefslogtreecommitdiffstats
path: root/vendor/tabled/src/grid/mod.rs
blob: cdd8c55c00f5aae389ce38b2fe09927ed0f0158e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Module is responsible for tables underlyign grid.
//!
//! It might be used when implementing your own [`TableOption`] and [`CellOption`].
//!
//! [`TableOption`]: crate::settings::TableOption
//! [`CellOption`]: crate::settings::CellOption
#[cfg(feature = "std")]
mod colored_config;

mod compact_multiline_config;

pub mod dimension;
pub mod records;

pub use papergrid::color;
pub use papergrid::colors;
pub use papergrid::util;

pub mod config {
    //! Module contains a list of configs for varios tables/grids.

    pub use papergrid::config::{
        compact::CompactConfig, AlignmentHorizontal, AlignmentVertical, Border, Borders, Entity,
        EntityIterator, Indent, Line, Position, Sides,
    };

    #[cfg(feature = "std")]
    #[cfg_attr(docsrs, doc(cfg(feature = "std")))]
    pub use papergrid::config::spanned::{
        EntityMap, Formatting, HorizontalLine, Offset, SpannedConfig, VerticalLine,
    };

    #[cfg(feature = "std")]
    #[cfg_attr(docsrs, doc(cfg(feature = "std")))]
    pub use super::colored_config::{ColorMap, ColoredConfig};

    pub use super::compact_multiline_config::CompactMultilineConfig;
}

pub use papergrid::grid::compact::CompactGrid;

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub use papergrid::grid::iterable::Grid;

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub use papergrid::grid::peekable::PeekableGrid;