pub fn init_random_values_rust(&self, pass: usize) -> String {
        self.iter()
            .filter_map(|arg| {
                (!arg.has_constraint()).then(|| {
                    if arg.is_simd() {
                        format!(
                            "let {name} = ::std::mem::transmute([{values}]);",
                            name = arg.name,
                            values = arg.ty.populate_random(pass, &Language::Rust),
                        )
                    } else {
                        format!(
                            "let {name} = {value};",
                            name = arg.name,
                            value = arg.ty.populate_random(pass, &Language::Rust)
                        )
                    }
                })
            })
            .collect::<Vec<_>>()
            .join("\n        ")
    }
/// Creates a line that initializes this argument for Rust code.
/// e.g. `let a = transmute([0x1, 0x2]);`
Creates a line that initializes this argument for Rust code.
Creates a line that initializes this argument for Rust code .
pub fn init_random_values_rust(&self, pass: usize) -> String {
        self.iter()
            .filter_map(|arg| {
                (!arg.has_constraint()).then(|| {
                    if arg.is_simd() {
                        format!(
                            "let {name} = ::std::mem::transmute([{values}]);",
                            name = arg.name,
                            values = arg.ty.populate_random(pass, &Language::Rust),
                        )
                    } else {
                        format!(
                            "let {name} = {value};",
                            name = arg.name,
                            value = arg.ty.populate_random(pass, &Language::Rust)
                        )
                    }
                })
            })
            .collect::<Vec<_>>()
            .join("\n        ")
    }
pub fn init_random_values_rust ( & self , pass : usize ) -> String { self . iter ( ) . filter_map ( | arg | { ( ! arg . has_constraint ( ) ) . then ( | | { if arg . is_simd ( ) { format ! ( " " name arg name values arg ty populate_random ( pass Language Rust ) ) } else { format ! ( " " name arg name value arg ty populate_random ( pass Language Rust ) ) } } ) } ) . collect :: < Vec < _ > > ( ) . join ( " \n " ) }
Creates a line that initializes this argument for Rust code.
Creates a line that initializes this argument for Rust code .
&self
pass
usize
&self
pass
usize