pub struct PythonizeUnnamedMappingAdapter<'py, T: PythonizeMappingType<'py>> { /* private fields */ }Expand description
Adapter type to use an unnamed mapping type, i.e. one that implements
PythonizeMappingType, as a named mapping type, i.e. one that implements
PythonizeNamedMappingType. The adapter simply drops the provided name.
This adapter is commonly applied to use the same unnamed mapping type for
both PythonizeTypes::Map and PythonizeTypes::NamedMap while only
implementing PythonizeMappingType.
Trait Implementations§
source§impl<'py, T: PythonizeMappingType<'py>> PythonizeNamedMappingType<'py> for PythonizeUnnamedMappingAdapter<'py, T>
impl<'py, T: PythonizeMappingType<'py>> PythonizeNamedMappingType<'py> for PythonizeUnnamedMappingAdapter<'py, T>
§type Builder = <T as PythonizeMappingType<'py>>::Builder
type Builder = <T as PythonizeMappingType<'py>>::Builder
Builder type for Python mappings with a name
source§fn builder(
py: Python<'py>,
len: usize,
_name: &'static str,
) -> PyResult<Self::Builder>
fn builder( py: Python<'py>, len: usize, _name: &'static str, ) -> PyResult<Self::Builder>
Create a builder for a Python mapping with a name
Auto Trait Implementations§
impl<'py, T> Freeze for PythonizeUnnamedMappingAdapter<'py, T>where
T: Freeze,
impl<'py, T> RefUnwindSafe for PythonizeUnnamedMappingAdapter<'py, T>where
T: RefUnwindSafe,
impl<'py, T> Send for PythonizeUnnamedMappingAdapter<'py, T>where
T: Send,
impl<'py, T> Sync for PythonizeUnnamedMappingAdapter<'py, T>where
T: Sync,
impl<'py, T> Unpin for PythonizeUnnamedMappingAdapter<'py, T>where
T: Unpin,
impl<'py, T> UnwindSafe for PythonizeUnnamedMappingAdapter<'py, T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more