pub trait PyWrapper: From<Self::Inner> + Into<Self::Inner> + AsRef<Self::Inner> {
    type Inner;

    // Provided methods
    fn as_inner(&self) -> &Self::Inner { ... }
    fn into_inner(self) -> Self::Inner { ... }
}
Expand description

Implemented by wrapper types generated with py_wrap_* macros:

Required Associated Types§

source

type Inner

The Rust type being wrapped.

Provided Methods§

source

fn as_inner(&self) -> &Self::Inner

Returns a reference to the inner item.

Like AsRef, but doesn’t require generics.

source

fn into_inner(self) -> Self::Inner

Converts this into the inner item.

Like Into, but doesn’t require generics.

Object Safety§

This trait is not object safe.

Implementors§