#[repr(C)]pub union HybridStringStorage<const N: usize> {
pub dynamic: HybridStringDynamicStorage,
pub inline: [u8; N],
}Expand description
The storage of a HybridString: inline, or a pointer elsewhere.
Fields§
§dynamic: HybridStringDynamicStorage§inline: [u8; N]Trait Implementations§
Source§impl<const N: usize> Clone for HybridStringStorage<N>
impl<const N: usize> Clone for HybridStringStorage<N>
Source§fn clone(&self) -> HybridStringStorage<N>
fn clone(&self) -> HybridStringStorage<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const N: usize> Copy for HybridStringStorage<N>
Auto Trait Implementations§
impl<const N: usize> !Send for HybridStringStorage<N>
impl<const N: usize> !Sync for HybridStringStorage<N>
impl<const N: usize> Freeze for HybridStringStorage<N>
impl<const N: usize> RefUnwindSafe for HybridStringStorage<N>
impl<const N: usize> Unpin for HybridStringStorage<N>
impl<const N: usize> UnsafeUnpin for HybridStringStorage<N>
impl<const N: usize> UnwindSafe for HybridStringStorage<N>
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