INNER CODE UNIT · Rust

new

fcoury/oxide · src/parser/mod.rs:27

    pub fn new(kind: &str, target: &str) -> Self {
        Self {
            kind: kind.to_string(),
            target: target.to_string(),
        }
    }
}

impl std::fmt::Display for UnimplementedError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "{} unimplemented: {}", self.kind, self.target)
    }
}

impl std::error::Error for UnimplementedError {}

pub fn parse(doc: Document) -> Result<String> {
    if doc.is_empty() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…