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

    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§

The Rust type being wrapped.

Provided Methods§

Returns a reference to the inner item.

Like AsRef, but doesn’t require generics.

Converts this into the inner item.

Like Into, but doesn’t require generics.

Implementors§