pub struct StrPtr { /* private fields */ }
Expand description
Needed to index a custom struct in maps.
We have to have the same type, so this acts as both the borrowed and owned.
TODO
: Cow
? But lifetime is a nightmare?
Trait Implementations§
impl Send for StrPtr
impl Sync for StrPtr
Auto Trait Implementations§
impl Freeze for StrPtr
impl RefUnwindSafe for StrPtr
impl Unpin for StrPtr
impl UnwindSafe for StrPtr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)