Struct potential_utf::PotentialUtf16

source ·
#[repr(transparent)]
pub struct PotentialUtf16(pub [u16]);

Tuple Fields§

§0: [u16]

Implementations§

source§

impl PotentialUtf16

source

pub const fn from_slice(other: &[u16]) -> &Self

Create a PotentialUtf16 from a u16 slice.

Trait Implementations§

source§

impl Debug for PotentialUtf16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Ord for PotentialUtf16

source§

fn cmp(&self, other: &PotentialUtf16) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl PartialEq for PotentialUtf16

source§

fn eq(&self, other: &PotentialUtf16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for PotentialUtf16

source§

fn partial_cmp(&self, other: &PotentialUtf16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryWriteable for &PotentialUtf16

This impl requires enabling the optional writeable Cargo feature

source§

type Error = DecodeUtf16Error

source§

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

Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
§

fn try_write_to<W>( &self, sink: &mut W, ) -> Result<Result<(), Self::Error>, Error>
where W: Write + ?Sized,

Writes the content of this writeable to a sink. Read more
§

fn try_write_to_string( &self, ) -> Result<Cow<'_, str>, (Self::Error, Cow<'_, str>)>

Writes the content of this writeable to a string. Read more
source§

impl Eq for PotentialUtf16

source§

impl StructuralPartialEq for PotentialUtf16

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more