(
&self,
group: S1,
properties: S2,
)
| 609 | } |
| 610 | |
| 611 | pub fn register_setting_json<S1: BnStrCompatible, S2: BnStrCompatible>( |
| 612 | &self, |
| 613 | group: S1, |
| 614 | properties: S2, |
| 615 | ) -> bool { |
| 616 | let group = group.into_bytes_with_nul(); |
| 617 | let properties = properties.into_bytes_with_nul(); |
| 618 | |
| 619 | unsafe { |
| 620 | BNSettingsRegisterSetting( |
| 621 | self.handle, |
| 622 | group.as_ref().as_ptr() as *mut _, |
| 623 | properties.as_ref().as_ptr() as *mut _, |
| 624 | ) |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | // TODO: register_setting but type-safely turn it into json |
| 629 | } |
no test coverage detected