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