fastxdr 1.0.1

Generate Rust types from XDR specs with fast, zero-copy deserialisation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod bytes;
pub trait FromTemplate: Copy {
    fn type_name(&self) -> &'static str;
    fn try_from(&self) -> &'static str;
    fn ref_type(&self) -> ReferenceType;
}

/// ReferenceType defines how the generated code should pass type instances when
/// decoding nested data structures.
#[derive(Debug, Clone, Copy)]
pub enum ReferenceType {
    ByValue,
    ByRef,
}