pub enum TxtRepr {
Static,
Inline,
String,
Arc,
}
Expand description
Variants§
Static
Text data is stored as a &'static str
.
Inline
Text data is a small string stored as a null terminated [u8; {size_of::<usize>() * 3}]
.
String
Text data is stored as a String
.
Arc
Text data is stored as an Arc<str>
.
Trait Implementations§
impl Copy for TxtRepr
impl Eq for TxtRepr
impl StructuralPartialEq for TxtRepr
Auto Trait Implementations§
impl Freeze for TxtRepr
impl RefUnwindSafe for TxtRepr
impl Send for TxtRepr
impl Sync for TxtRepr
impl Unpin for TxtRepr
impl UnwindSafe for TxtRepr
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
)