1 2 3 4 5 6 7 8 9 10 11 12 13
// SPDX-License-Identifier: MIT // Copyright (C) 2018-present iced project and contributors use crate::formatter::enums_shared::FormatterTextKind; use crate::formatter::FormatterOutput; use alloc::string::String; impl FormatterOutput for String { #[inline] fn write(&mut self, text: &str, _kind: FormatterTextKind) { self.push_str(text); } }