Struct kgdata::pyo3helper::usizeview::PyUsizeView
source · pub struct PyUsizeView(pub usize);
Expand description
An zero-cost abstraction for &str for returning &str to Python and accepting &str as the input because receiving &String as input is not possible.
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
source§impl<'t> FromPyObject<'t> for PyUsizeView
impl<'t> FromPyObject<'t> for PyUsizeView
source§impl ToPyObject for PyUsizeView
impl ToPyObject for PyUsizeView
Auto Trait Implementations§
impl Freeze for PyUsizeView
impl RefUnwindSafe for PyUsizeView
impl Send for PyUsizeView
impl Sync for PyUsizeView
impl Unpin for PyUsizeView
impl UnwindSafe for PyUsizeView
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