Struct konst::chr::Utf8Encoded
source · pub struct Utf8Encoded { /* private fields */ }
Expand description
A char encoded as a utf8 string.
§Example
use konst::chr;
const ENC: &chr::Utf8Encoded = &chr::encode_utf8('û');
const ENC_STR: &str = ENC.as_str();
assert_eq!(ENC_STR, "û");
Implementations§
Trait Implementations§
source§impl Clone for Utf8Encoded
impl Clone for Utf8Encoded
source§fn clone(&self) -> Utf8Encoded
fn clone(&self) -> Utf8Encoded
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 moreimpl Copy for Utf8Encoded
Auto Trait Implementations§
impl Freeze for Utf8Encoded
impl RefUnwindSafe for Utf8Encoded
impl Send for Utf8Encoded
impl Sync for Utf8Encoded
impl Unpin for Utf8Encoded
impl UnwindSafe for Utf8Encoded
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)