pyo3::impl_::extract_argument

Trait FunctionArgumentHolder

Source
pub trait FunctionArgumentHolder: Sized {
    const INIT: Self;
}
Expand description

Trait for types which can be a function argument holder - they should to be able to const-initialize to an empty value.

Required Associated Constants§

Source

const INIT: Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FunctionArgumentHolder for ()

Source§

const INIT: Self = ()

Source§

impl<T> FunctionArgumentHolder for Option<T>

Source§

const INIT: Self = None

Implementors§

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