Trait hs_bindgen_traits::FromReprC
source · pub trait FromReprC<T>: CFFISafe {
// Required method
fn from(_: T) -> Self;
}
Expand description
Generate C-FFI cast from a given Rust type.
impl FromReprC<Foo> for Bar
-> means from
Rust Foo
type into C Bar
repr
Required Methods§
Implementations on Foreign Types§
source§impl FromReprC<()> for ()
impl FromReprC<()> for ()
This is used by Rust function that doesn’t return any value
(void
C equivalent).