#[repr(transparent)]pub(crate) struct ConstStr<'a> {
ffi: ConstStr,
_phantom: PhantomData<&'a str>,
}Expand description
A repr(transparent) wrapper around bindings::ConstStr adding a lifetime
Fields§
§ffi: ConstStr§_phantom: PhantomData<&'a str>Implementations§
Trait Implementations§
impl<'a> Copy for ConstStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstStr<'a>
impl<'a> RefUnwindSafe for ConstStr<'a>
impl<'a> !Send for ConstStr<'a>
impl<'a> !Sync for ConstStr<'a>
impl<'a> Unpin for ConstStr<'a>
impl<'a> UnwindSafe for ConstStr<'a>
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