Skip to main content

Cast

Derive Macro Cast 

Source
#[derive(Cast)]
Expand description

Derive macro generating an impl of trait Cast for a struct type or a union type.

It must be applied together with attribute #[repr(C)].

For detailed information, see the document of trait Cast.