pub(crate) fn new(writer: &'writer mut impl fmt::Write) -> Self {
        Self {
            writer: writer as &mut dyn fmt::Write,
            is_ansi: false,
        }
    }
// TODO(eliza): consider making this a public API?
// We may not want to do that if we choose to expose specialized
// constructors instead (e.g. `from_string` that stores whether the string
// is empty...?)
consider making this a public API.
We may not want to do that if we choose to expose specialized
constructors instead
consider making this a public API . We may not want to do that if we choose to expose specialized constructors instead
pub(crate) fn new(writer: &'writer mut impl fmt::Write) -> Self {
        Self {
            writer: writer as &mut dyn fmt::Write,
            is_ansi: false,
        }
    }
pub ( crate ) fn new ( writer : & ' writer mut impl fmt :: Write ) -> Self { Self { writer : writer as & mut dyn fmt :: Write , is_ansi : false , } }
TODO(eliza): consider making this a public API?
TODO ( eliza ) : consider making this a public API?
writer
&'writer mut impl fmt::Write