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

Method write_comment

css-inline/src/html/serializer.rs:613–618  ·  view source on GitHub ↗
(&mut self, text: &str)

Source from the content-addressed store, hash-verified

611 }
612
613 fn write_comment(&mut self, text: &str) -> Result<(), InlineError> {
614 self.writer.write_all(b"<!--")?;
615 self.writer.write_all(text.as_bytes())?;
616 self.writer.write_all(b"-->")?;
617 Ok(())
618 }
619
620 fn write_doctype(&mut self, name: &str) -> Result<(), InlineError> {
621 self.writer.write_all(b"<!DOCTYPE ")?;

Callers 1

serializeMethod · 0.80

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected