Struct wstp::Utf32Str

source ·
pub struct Utf32Str(/* private fields */);
Expand description

UTF-32 string slice.

Implementations§

source§

impl Utf32Str

source

pub unsafe fn from_utf32_unchecked(utf32: &[u32]) -> &Utf32Str

Converts a slice of bytes to a Utf32Str without validating that the slice contains valid UTF-32 encoded data.

source

pub fn as_slice(&self) -> &[u32]

Access the elements of this UTF-32 string as a slice of u32 elements.

Trait Implementations§

source§

impl Debug for Utf32Str

source§

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

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

impl Display for Utf32Str

source§

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

Formats the value using the given formatter. Read more

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
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more