mirror of
https://github.com/sharkdp/bat
synced 2025-02-17 13:28:29 +00:00
12 lines
317 B
Rust
12 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)
|
|
}
|
|
}
|