mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-10 21:27:01 +01:00
13 lines
317 B
Rust
13 lines
317 B
Rust
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
pub enum WrappingMode {
|
|
Character,
|
|
// The bool specifies whether wrapping has been explicitly disabled by the user via --wrap=never
|
|
NoWrapping(bool),
|
|
}
|
|
|
|
impl Default for WrappingMode {
|
|
fn default() -> Self {
|
|
WrappingMode::NoWrapping(false)
|
|
}
|
|
}
|