Struct emacs_multibyte::OwnedString
source · pub struct OwnedString<A: Allocator>(/* private fields */);
Implementations§
source§impl<A> OwnedString<A>where
A: Allocator,
impl<A> OwnedString<A>where
A: Allocator,
pub fn coalesce_chars( unpacked: impl Iterator<Item = SingleChar>, alloc: A, ) -> Self
pub const fn allocator(&self) -> &A
sourcepub const unsafe fn from_bytes(s: Box<[u8], A>) -> Self
pub const unsafe fn from_bytes(s: Box<[u8], A>) -> Self
§Safety
s
MUST be a valid owned multibyte string!
pub const fn as_packed_str(&self) -> PackedString<'_>
Trait Implementations§
source§impl<A> Arbitrary for OwnedString<A>
impl<A> Arbitrary for OwnedString<A>
§type Parameters = (usize, A)
type Parameters = (usize, A)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<OwnedString<A>>
type Strategy = BoxedStrategy<OwnedString<A>>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: (usize, A)) -> Self::Strategy
fn arbitrary_with(args: (usize, A)) -> Self::Strategy
source§impl<A: Clone + Allocator> Clone for OwnedString<A>
impl<A: Clone + Allocator> Clone for OwnedString<A>
source§fn clone(&self) -> OwnedString<A>
fn clone(&self) -> OwnedString<A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<A: Allocator> Debug for OwnedString<A>
impl<A: Allocator> Debug for OwnedString<A>
source§impl<A: Allocator> Display for OwnedString<A>
impl<A: Allocator> Display for OwnedString<A>
source§impl<A: Allocator> Hash for OwnedString<A>
impl<A: Allocator> Hash for OwnedString<A>
source§impl<A: Allocator> Ord for OwnedString<A>
impl<A: Allocator> Ord for OwnedString<A>
source§impl<A: Allocator> PartialEq for OwnedString<A>
impl<A: Allocator> PartialEq for OwnedString<A>
source§impl<A: Allocator> PartialOrd for OwnedString<A>
impl<A: Allocator> PartialOrd for OwnedString<A>
impl<A: Allocator> Eq for OwnedString<A>
Auto Trait Implementations§
impl<A> Freeze for OwnedString<A>where
A: Freeze,
impl<A> RefUnwindSafe for OwnedString<A>where
A: RefUnwindSafe,
impl<A> Send for OwnedString<A>where
A: Send,
impl<A> Sync for OwnedString<A>where
A: Sync,
impl<A> Unpin for OwnedString<A>
impl<A> UnwindSafe for OwnedString<A>where
A: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)