Trait rigetti_pyo3::PyWrapperMut
source · pub trait PyWrapperMut: PyWrapper + AsMut<Self::Inner> {
// Provided method
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§
sourcefn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner item.
Like AsMut, but doesn’t require generics.
Object Safety§
This trait is not object safe.