| 1 | #[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))] |
| 2 | mod attribute; |
| 3 | mod cellrust-analyzer cargo comfy-table 7.2.2 style/cell/; |
| 4 | #[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))] |
| 5 | mod color; |
| 6 | mod columnrust-analyzer cargo comfy-table 7.2.2 style/column/; |
| 7 | /// Contains modifiers, that can be used to alter certain parts of a preset.\ |
| 8 | /// For instance, the [UTF8_ROUND_CORNERS](modifiers::UTF8_ROUND_CORNERS) replaces all corners with |
| 9 | /// round UTF8 box corners. |
| 10 | pub mod modifiersrust-analyzer cargo comfy-table 7.2.2 style/modifiers/; |
| 11 | /// This module provides styling presets for tables.\ |
| 12 | /// Every preset has an example preview. |
| 13 | pub mod presetsrust-analyzer cargo comfy-table 7.2.2 style/presets/; |
| 14 | mod tablerust-analyzer cargo comfy-table 7.2.2 style/table/; |
| 15 | |
| 16 | pub use cellrust-analyzer cargo comfy-table 7.2.2 style/cell/::CellAlignmentrust-analyzer cargo comfy-table 7.2.2 style/cell/CellAlignment#; |
| 17 | pub use columnrust-analyzer cargo comfy-table 7.2.2 style/column/::{ColumnConstraintrust-analyzer cargo comfy-table 7.2.2 style/column/ColumnConstraint#, Widthrust-analyzer cargo comfy-table 7.2.2 style/column/Width#}; |
| 18 | #[cfg(feature = "tty")] |
| 19 | pub use styling_enumsrust-analyzer cargo comfy-table 7.2.2 style/styling_enums/::{Attributerust-analyzer cargo crossterm 0.29.0 style/types/attribute/Attribute#, Colorrust-analyzer cargo crossterm 0.29.0 style/types/color/Color#}; |
| 20 | #[cfg(feature = "tty")] |
| 21 | pub(craterust-analyzer cargo comfy-table 7.2.2 crate/) use styling_enumsrust-analyzer cargo comfy-table 7.2.2 style/styling_enums/::{map_attributerust-analyzer cargo comfy-table 7.2.2 style/styling_enums/map_attribute()., map_colorrust-analyzer cargo comfy-table 7.2.2 style/styling_enums/map_color().}; |
| 22 | pub use tablerust-analyzer cargo comfy-table 7.2.2 style/table/::{ContentArrangementrust-analyzer cargo comfy-table 7.2.2 style/table/ContentArrangement#, TableComponentrust-analyzer cargo comfy-table 7.2.2 style/table/TableComponent#}; |
| 23 | |
| 24 | /// Convenience module to have cleaner and "identical" conditional re-exports for style enums. |
| 25 | #[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))] |
| 26 | mod styling_enumsrust-analyzer cargo comfy-table 7.2.2 style/styling_enums/ { |
| 27 | pub use superrust-analyzer cargo comfy-table 7.2.2 style/::{attribute::*, color::*}; |
| 28 | } |
| 29 | |
| 30 | /// Re-export the crossterm type directly instead of using the internal mirrored types. |
| 31 | /// This result in possible ABI incompatibilities when using comfy_table and crossterm in the same |
| 32 | /// project with different versions, but may also be very convenient for developers. |
| 33 | #[cfg(all(feature = "tty", feature = "reexport_crossterm"))] |
| 34 | mod styling_enumsrust-analyzer cargo comfy-table 7.2.2 style/styling_enums/ { |
| 35 | /// Attributes used for styling cell content. Reexport of crossterm's |
| 36 | /// [Attributes](crossterm::style::Attribute) enum. |
| 37 | pub use crosstermrust-analyzer cargo crossterm 0.29.0 crate/::stylerust-analyzer cargo crossterm 0.29.0 style/::Attributerust-analyzer cargo crossterm 0.29.0 style/types/attribute/Attribute#; |
| 38 | /// Colors used for styling cell content. Reexport of crossterm's |
| 39 | /// [Color](crossterm::style::Color) enum. |
| 40 | pub use crosstermrust-analyzer cargo crossterm 0.29.0 crate/::stylerust-analyzer cargo crossterm 0.29.0 style/::Colorrust-analyzer cargo crossterm 0.29.0 style/types/color/Color#; |
| 41 | |
| 42 | /// Convenience function to have the same mapping code for reexported types. |
| 43 | #[inline] |
| 44 | pub(craterust-analyzer cargo comfy-table 7.2.2 crate/) fn map_attributerust-analyzer cargo comfy-table 7.2.2 style/styling_enums/map_attribute().(attribute: Attributerust-analyzer cargo crossterm 0.29.0 style/types/attribute/Attribute#) -> Attributerust-analyzer cargo crossterm 0.29.0 style/types/attribute/Attribute# { |
| 45 | attribute |
| 46 | } |
| 47 | |
| 48 | /// Convenience function to have the same mapping code for reexported types. |
| 49 | #[inline] |
| 50 | pub(craterust-analyzer cargo comfy-table 7.2.2 crate/) fn map_colorrust-analyzer cargo comfy-table 7.2.2 style/styling_enums/map_color().(color: Colorrust-analyzer cargo crossterm 0.29.0 style/types/color/Color#) -> Colorrust-analyzer cargo crossterm 0.29.0 style/types/color/Color# { |
| 51 | color |
| 52 | } |
| 53 | } |