pub struct Clone<'a, R>(pub R, pub &'a str);
Expand description
An emplacer for a RelString
that copies its bytes from a str
.
Tuple Fields
0: R
1: &'a str
Trait Implementations
sourceimpl<A, B, R> Emplace<RelString<A, B>, <R as RegionalAllocator>::Region> for Clone<'_, R>where
A: DropRaw + RawRegionalAllocator<Region = R::Region>,
B: Basis,
R: RelAllocator<A>,
impl<A, B, R> Emplace<RelString<A, B>, <R as RegionalAllocator>::Region> for Clone<'_, R>where
A: DropRaw + RawRegionalAllocator<Region = R::Region>,
B: Basis,
R: RelAllocator<A>,
Auto Trait Implementations
impl<'a, R> RefUnwindSafe for Clone<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for Clone<'a, R>where
R: Send,
impl<'a, R> Sync for Clone<'a, R>where
R: Sync,
impl<'a, R> Unpin for Clone<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for Clone<'a, R>where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T, B> BasisPointee<B> for Twhere
B: Basis,
impl<T, B> BasisPointee<B> for Twhere
B: Basis,
type BasisMetadata = ()
type BasisMetadata = ()
The metadata associated with the pointee in the chosen basis.
type FromNativeError = Infallible
type FromNativeError = Infallible
An error occurred while converting metadata from the native
representation. Read more
type ToNativeError = Infallible
type ToNativeError = Infallible
An error occurred while converting metadata to the native
representation. Read more
sourcefn from_native_metadata(
<T as Pointee>::Metadata
) -> Result<<T as BasisPointee<B>>::BasisMetadata, <T as BasisPointee<B>>::FromNativeError>
fn from_native_metadata(
<T as Pointee>::Metadata
) -> Result<<T as BasisPointee<B>>::BasisMetadata, <T as BasisPointee<B>>::FromNativeError>
Returns the pointer metadata in
B
corresponding to the given native
pointer metadata, or Err
if the conversion failed. Read moresourcefn to_native_metadata(
<T as BasisPointee<B>>::BasisMetadata
) -> Result<<T as Pointee>::Metadata, <T as BasisPointee<B>>::ToNativeError>
fn to_native_metadata(
<T as BasisPointee<B>>::BasisMetadata
) -> Result<<T as Pointee>::Metadata, <T as BasisPointee<B>>::ToNativeError>
Returns the native pointer metadata corresponding to the given pointer
metadata in
B
, or Err
if the conversion failed. Read moresourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<E, T, R> EmplaceExt<T, R> for Ewhere
E: Emplace<T, R>,
T: DropRaw + Pointee + ?Sized,
R: Region,
impl<E, T, R> EmplaceExt<T, R> for Ewhere
E: Emplace<T, R>,
T: DropRaw + Pointee + ?Sized,
R: Region,
sourcefn emplace_unsized(self, out: In<Slot<'_, T>, R>)
fn emplace_unsized(self, out: In<Slot<'_, T>, R>)
Emplaces a value into a given slot within some memory region. Read more
sourcefn emplace(self, out: In<Slot<'_, T>, R>)
fn emplace(self, out: In<Slot<'_, T>, R>)
Emplaces a sized value into a given slot within some memory region. Read more
sourceunsafe fn emplace_mut_unsized(self, out: In<Slot<'_, T>, R>) -> In<Mut<'_, T>, R>
unsafe fn emplace_mut_unsized(self, out: In<Slot<'_, T>, R>) -> In<Mut<'_, T>, R>
Emplaces a value into a given slot within some memory region and returns
a mutable reference. Read more
sourcefn emplace_mut(self, out: In<Slot<'_, T>, R>) -> In<Mut<'_, T>, R>
fn emplace_mut(self, out: In<Slot<'_, T>, R>) -> In<Mut<'_, T>, R>
Emplaces a sized value into a given slot within some memory region and
returns a mutable reference. Read more