pub struct ExcelStr<'call> { /* private fields */ }Expand description
Borrowed UTF-16 code units. No Unicode conversion is performed.
ⓘ
use excel_api::ExcelStr;
fn require_send<T: Send>() {}
require_send::<ExcelStr<'static>>();ⓘ
use excel_api::ExcelStr;
fn require_sync<T: Sync>() {}
require_sync::<ExcelStr<'static>>();ⓘ
use excel_api::ExcelStr;
fn require_clone<T: Clone>() {}
require_clone::<ExcelStr<'static>>();Implementations§
Source§impl<'call> ExcelStr<'call>
impl<'call> ExcelStr<'call>
Sourcepub unsafe fn from_counted_direct(
counted: &'call XCHAR,
) -> Result<Self, DecodeError>
pub unsafe fn from_counted_direct( counted: &'call XCHAR, ) -> Result<Self, DecodeError>
Parses a registered counted direct UTF-16 argument.
§Safety
counted must be aligned, readable, and immutable for 'call. It must
contain a readable length prefix followed by that many code units.
Sourcepub unsafe fn from_null_terminated_direct(
terminated: &'call XCHAR,
) -> Result<Self, DecodeError>
pub unsafe fn from_null_terminated_direct( terminated: &'call XCHAR, ) -> Result<Self, DecodeError>
Parses a registered null-terminated direct UTF-16 argument.
Scanning is bounded by Excel’s 32,767-code-unit string limit.
§Safety
terminated must be aligned, readable, and immutable for 'call
through the first NUL or through index 32,767 inclusive.
Sourcepub const fn len(&self) -> usize
pub const fn len(&self) -> usize
Returns the number of UTF-16 code units, not Unicode scalar values.
Trait Implementations§
Auto Trait Implementations§
impl<'call> !Send for ExcelStr<'call>
impl<'call> !Sync for ExcelStr<'call>
impl<'call> Freeze for ExcelStr<'call>
impl<'call> RefUnwindSafe for ExcelStr<'call>
impl<'call> Unpin for ExcelStr<'call>
impl<'call> UnsafeUnpin for ExcelStr<'call>
impl<'call> UnwindSafe for ExcelStr<'call>
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