Trait pyo3::impl_::wrap::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