Skip to main content

euv_core/vdom/
impl.rs

1use super::*;
2
3/// Formatting / debug-printing for [`RawHtml`].
4impl Display for RawHtml {
5    /// Formats the [`RawHtml`] via the supplied formatter.
6    ///
7    /// # Arguments
8    ///
9    /// - `&mut Formatter<'_>` - The formatter receiving the formatted output.
10    ///
11    /// # Returns
12    ///
13    /// - `fmt::Result` - Result of the formatting operation.
14    fn fmt(&self, formatter: &mut Formatter<'_>) -> fmt::Result {
15        write!(formatter, "{}", self.get_content())
16    }
17}