pyo3::impl_::wrap

Trait SomeWrap

Source
pub trait SomeWrap<T> {
    // Required method
    fn wrap(self) -> Option<T>;
}
Expand description

Used to wrap values in Option<T> for default arguments.

Required Methods§

Source

fn wrap(self) -> Option<T>

Implementations on Foreign Types§

Source§

impl<T> SomeWrap<T> for Option<T>

Source§

fn wrap(self) -> Self

Implementors§

Source§

impl<T> SomeWrap<T> for T

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