[−][src]Struct asn1rs_model::gen::rust::RustCodeGenerator
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]
&self,
model: &Model<Rust>,
generators: &[&dyn GeneratorSupplement<Rust>]
) -> (String, String)
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]
Auto Trait Implementations
impl RefUnwindSafe for RustCodeGenerator
impl Send for RustCodeGenerator
impl Sync for RustCodeGenerator
impl Unpin for RustCodeGenerator
impl UnwindSafe for RustCodeGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,