pub trait PyWrapperMut: PyWrapper + AsMut<Self::Inner> {
    fn as_inner_mut(&mut self) -> &mut Self::Inner { ... }
}
Expand description

Implemented by wrapper types containing the source type, generated with py_wrap_* macros:

The notable exception is py_wrap_simple_enum, where it does not make sense to have a mutable reference to a unit enum.

Provided Methods§

Returns a mutable reference to the inner item.

Like AsMut, but doesn’t require generics.

Implementors§