[][src]Trait asn1rs_model::gen::Generator

pub trait Generator<T> {
    type Error;
    fn add_model(&mut self, model: Model<T>);
fn models(&self) -> &[Model<T>];
fn models_mut(&mut self) -> &mut [Model<T>];
fn to_string(&self) -> Result<Vec<(String, String)>, Self::Error>; }

Associated Types

type Error

Loading content...

Required methods

fn add_model(&mut self, model: Model<T>)

fn models(&self) -> &[Model<T>]

fn models_mut(&mut self) -> &mut [Model<T>]

fn to_string(&self) -> Result<Vec<(String, String)>, Self::Error>

Loading content...

Implementors

impl Generator<Protobuf> for ProtobufDefGenerator[src]

type Error = Error

impl Generator<Rust> for RustCodeGenerator[src]

type Error = ()

impl Generator<Sql> for SqlDefGenerator[src]

type Error = Error

Loading content...