Struct kgdata::pyo3helper::strview::PyStrView
source · pub struct PyStrView(pub &'static str);
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: &'static str
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PyStrView
impl RefUnwindSafe for PyStrView
impl Send for PyStrView
impl Sync for PyStrView
impl Unpin for PyStrView
impl UnwindSafe for PyStrView
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