MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / Alignment

Enum Alignment

atomic-cli/src/output/table.rs:45–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43/// is wider than the content.
44#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
45pub enum Alignment {
46 /// Align content to the left (default).
47 ///
48 /// Extra space is added to the right of the content.
49 #[default]
50 Left,
51
52 /// Align content to the right.
53 ///
54 /// Extra space is added to the left of the content.
55 #[allow(dead_code)] // used in apply() match arm
56 Right,
57
58 /// Center content.
59 ///
60 /// Extra space is distributed evenly on both sides.
61 Center,
62}
63
64impl Alignment {
65 /// Apply this alignment to a string within a given width.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected