Derive Macro pipewire_wrapper::RawWrapper

source ·
#[derive(RawWrapper)]
{
    // Attributes available to this derive:
    #[raw]
}
Expand description

Implement RawWrapper trait. #[raw] attribute must be added before field with wrapped raw value.

Examples

#[derive(RawWrapper, Debug)]
#[repr(transparent)]
pub struct MainLoopRef {
    #[raw]
    raw: pw_sys::pw_main_loop,
}