Skip to main content

gen_bridge_wrapper_struct

Function gen_bridge_wrapper_struct 

Source
pub fn gen_bridge_wrapper_struct(
    spec: &TraitBridgeSpec<'_>,
    generator: &dyn TraitBridgeGenerator,
) -> String
Expand description

Generate the wrapper struct holding the foreign object and cached fields.

Produces a struct like:

pub struct PythonOcrBackendBridge {
    inner: Py<PyAny>,
    cached_name: String,
}