pub struct Utf16BeStr<'a> { /* private fields */ }
Expand description
A UTF-16BE encoded string.
Trait Implementations§
Source§impl<'a> Clone for Utf16BeStr<'a>
impl<'a> Clone for Utf16BeStr<'a>
Source§fn clone(&self) -> Utf16BeStr<'a>
fn clone(&self) -> Utf16BeStr<'a>
Returns a duplicate 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 moreSource§impl<'a> Debug for Utf16BeStr<'a>
impl<'a> Debug for Utf16BeStr<'a>
Source§impl PartialEq for Utf16BeStr<'_>
impl PartialEq for Utf16BeStr<'_>
Source§impl Serialize for Utf16BeStr<'_>
impl Serialize for Utf16BeStr<'_>
Source§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
Source§fn serialize_partial(
&self,
byte_writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, byte_writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
Source§impl Utf16Str for Utf16BeStr<'_>
impl Utf16Str for Utf16BeStr<'_>
Source§fn chars_lossy(&self) -> impl Iterator<Item = char>
fn chars_lossy(&self) -> impl Iterator<Item = char>
Returns a lossy iterator over the characters of the string.
impl Eq for Utf16BeStr<'_>
Auto Trait Implementations§
impl<'a> Freeze for Utf16BeStr<'a>
impl<'a> RefUnwindSafe for Utf16BeStr<'a>
impl<'a> Send for Utf16BeStr<'a>
impl<'a> Sync for Utf16BeStr<'a>
impl<'a> Unpin for Utf16BeStr<'a>
impl<'a> UnwindSafe for Utf16BeStr<'a>
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<T> SerializeExt for Twhere
T: Serialize,
impl<T> SerializeExt for Twhere
T: Serialize,
Source§impl<T> Utf16StrExt for Twhere
T: Utf16Str,
impl<T> Utf16StrExt for Twhere
T: Utf16Str,
Source§fn utf8_length(&self) -> usize
fn utf8_length(&self) -> usize
Returns the number of bytes required to store this string as UTF-8.
Source§fn create_str<'a>(
&'a self,
buffer: &'a mut [u8],
) -> Result<&'a str, SerializeError>
fn create_str<'a>( &'a self, buffer: &'a mut [u8], ) -> Result<&'a str, SerializeError>
Create a UTF-8 string from the UTF-16 encoded string in the provided buffer.