MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / write_processing_instruction

Method write_processing_instruction

css-inline/src/html/serializer.rs:627–638  ·  view source on GitHub ↗
(
        &mut self,
        target: &str,
        data: &str,
    )

Source from the content-addressed store, hash-verified

625 }
626
627 fn write_processing_instruction(
628 &mut self,
629 target: &str,
630 data: &str,
631 ) -> Result<(), InlineError> {
632 self.writer.write_all(b"<?")?;
633 self.writer.write_all(target.as_bytes())?;
634 self.writer.write_all(b" ")?;
635 self.writer.write_all(data.as_bytes())?;
636 self.writer.write_all(b">")?;
637 Ok(())
638 }
639}
640
641const STYLE_SEPARATOR: &[u8] = b": ";

Callers 1

serializeMethod · 0.80

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected