| 918 | } |
| 919 | |
| 920 | pub fn parameter_variables(&self) -> Conf<Vec<Variable>> { |
| 921 | unsafe { |
| 922 | let mut raw_variables = BNGetFunctionParameterVariables(self.handle); |
| 923 | let raw_var_list = std::slice::from_raw_parts(raw_variables.vars, raw_variables.count); |
| 924 | let variables: Vec<Variable> = raw_var_list.iter().map(Into::into).collect(); |
| 925 | let confidence = raw_variables.confidence; |
| 926 | BNFreeParameterVariables(&mut raw_variables); |
| 927 | Conf::new(variables, confidence) |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | pub fn set_user_parameter_variables<I>(&self, values: I, confidence: u8) |
| 932 | where |