pub enum Tag {
Bytes,
Utf8,
}Expand description
Interpretation of a string.
This influences the outcome of a few operations (e.g. slicing) as well as how a string is printed.
Variants§
Bytes
Sequence of bytes, to be escaped
Utf8
Sequence of UTF-8 code points
Note that this does not require the actual bytes to be all valid UTF-8; this just means that the bytes are interpreted as UTF-8. An effort is made to preserve invalid UTF-8 as is, else replace invalid UTF-8 by the Unicode replacement character.
Trait Implementations§
impl Copy for Tag
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.