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