macroonz-compiler 0.1.0

Deterministic Rust code generation for procedural macros: plan, render, close, explain, and bind one sealed expansion from declared input.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Canonical support-declaration refusal encoding.
use super::DeclarationError;
impl DeclarationError {
    /// Returns canonical bytes.
    #[must_use]
    pub fn canonical_bytes(self) -> Vec<u8> {
        let mut bytes = Vec::new();
        self.encode_into(&mut bytes);
        bytes
    }
    /// Appends canonical bytes.
    pub fn encode_into(self, into: &mut Vec<u8>) {
        into.push(self.slot());
    }
}