blob: 7c0d821e7a34a59e0e9fcd47246bec0ac715d9b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//! ref: composer/vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php
use crate::symfony::console::formatter::output_formatter_interface::OutputFormatterInterface;
/// Formatter interface for console output that supports word wrapping.
pub trait WrappableOutputFormatterInterface: OutputFormatterInterface {
/// Formats a message according to the given styles, wrapping at `width` (0 means no wrapping).
fn format_and_wrap(
&mut self,
message: Option<&str>,
width: i64,
) -> anyhow::Result<Option<String>>;
}
|