Struct asn1rs_model::gen::rust::RustCodeGenerator
source · pub struct RustCodeGenerator { /* private fields */ }
Implementations§
source§impl RustCodeGenerator
impl RustCodeGenerator
pub fn add_global_derive<I: Into<String>>(&mut self, derive: I)
pub fn without_additional_global_derives(self) -> Self
pub const fn fields_are_pub(&self) -> bool
pub fn set_fields_pub(&mut self, allow: bool)
pub const fn fields_have_getter_and_setter(&self) -> bool
pub fn set_fields_have_getter_and_setter(&mut self, allow: bool)
pub fn to_string_without_generators(&self) -> Vec<(String, String)>
pub fn to_string_with_generators( &self, generators: &[&dyn GeneratorSupplement<Rust>] ) -> Vec<(String, String)>
pub fn model_to_file( &self, model: &Model<Rust>, generators: &[&dyn GeneratorSupplement<Rust>] ) -> (String, String)
pub fn add_definition(&self, scope: &mut Scope, Definition: &Definition<Rust>)
pub fn rust_field_name(name: &str, check_for_keywords: bool) -> String
pub fn rust_variant_name(name: &str) -> String
pub fn rust_module_name(name: &str) -> String
Trait Implementations§
source§impl Debug for RustCodeGenerator
impl Debug for RustCodeGenerator
source§impl Default for RustCodeGenerator
impl Default for RustCodeGenerator
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more