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

Method write_at_rules_style

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

Source from the content-addressed store, hash-verified

604 }
605
606 fn write_at_rules_style(&mut self, at_rules: &str) -> Result<(), InlineError> {
607 self.writer.write_all(b"<style>")?;
608 self.writer.write_all(at_rules.as_bytes())?;
609 self.writer.write_all(b"</style>")?;
610 Ok(())
611 }
612
613 fn write_comment(&mut self, text: &str) -> Result<(), InlineError> {
614 self.writer.write_all(b"<!--")?;

Callers 1

serializeMethod · 0.80

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected