19 lines · 541 B · Rust
RawDownload
use crate::parse::Comment; impl Comment {    pub(crate) fn copy_to_backing_in(        &self,        source: &[u8],        target: &mut Vec<u8>,    ) -> Result<Comment, crate::parse::span::Error> {        Ok(Comment {            tag: self.tag,            text: self.text.copy_to_backing_in(source, target)?,        })    }     pub(crate) fn write_to_in(&self, backing: &[u8], mut out: impl std::io::Write) -> std::io::Result<()> {        out.write_all(&[self.tag])?;        out.write_all(self.text.as_slice_in(backing))    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t