Struct potential_utf::PotentialUtf16
source · #[repr(transparent)]pub struct PotentialUtf16(pub [u16]);
Tuple Fields§
§0: [u16]
Implementations§
source§impl PotentialUtf16
impl PotentialUtf16
sourcepub const fn from_slice(other: &[u16]) -> &Self
pub const fn from_slice(other: &[u16]) -> &Self
Create a PotentialUtf16
from a u16 slice.
Trait Implementations§
source§impl Debug for PotentialUtf16
impl Debug for PotentialUtf16
source§impl Ord for PotentialUtf16
impl Ord for PotentialUtf16
source§impl PartialEq for PotentialUtf16
impl PartialEq for PotentialUtf16
source§impl PartialOrd for PotentialUtf16
impl PartialOrd for PotentialUtf16
source§impl TryWriteable for &PotentialUtf16
impl TryWriteable for &PotentialUtf16
This impl requires enabling the optional writeable
Cargo feature
type Error = DecodeUtf16Error
source§fn try_write_to_parts<S: PartsWrite + ?Sized>(
&self,
sink: &mut S,
) -> Result<Result<(), Self::Error>, Error>
fn try_write_to_parts<S: PartsWrite + ?Sized>( &self, sink: &mut S, ) -> Result<Result<(), Self::Error>, Error>
Writes the content of this writeable to a sink with parts (annotations). Read more
source§fn writeable_length_hint(&self) -> LengthHint
fn writeable_length_hint(&self) -> LengthHint
Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more