pyo3_macros_backend::pyclass

Trait EnumVariant

Source
trait EnumVariant {
    // Required methods
    fn get_ident(&self) -> &Ident;
    fn get_options(&self) -> &EnumVariantPyO3Options;

    // Provided method
    fn get_python_name(&self, args: &PyClassArgs) -> Cow<'_, Ident> { ... }
}

Required Methods§

Provided Methods§

Source

fn get_python_name(&self, args: &PyClassArgs) -> Cow<'_, Ident>

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here