[][src]Struct asn1rs_model::gen::rust::RustCodeGenerator

pub struct RustCodeGenerator { /* fields omitted */ }

Implementations

impl RustCodeGenerator[src]

pub fn add_global_derive<I: Into<String>>(&mut self, derive: I)[src]

pub const fn fields_are_pub(&self) -> bool[src]

pub fn set_fields_pub(&mut self, allow: bool)[src]

pub const fn fields_have_getter_and_setter(&self) -> bool[src]

pub fn set_fields_have_getter_and_setter(&mut self, allow: bool)[src]

pub fn model_to_file(
    &self,
    model: &Model<Rust>,
    generators: &[&dyn GeneratorSupplement<Rust>]
) -> (String, String)
[src]

pub fn add_definition(&self, scope: &mut Scope, Definition: &Definition<Rust>)[src]

pub fn rust_field_name(name: &str, check_for_keywords: bool) -> String[src]

pub fn rust_variant_name(name: &str) -> String[src]

pub fn rust_module_name(name: &str) -> String[src]

Trait Implementations

impl Debug for RustCodeGenerator[src]

impl Default for RustCodeGenerator[src]

impl Generator<Rust> for RustCodeGenerator[src]

type Error = ()

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.