pub struct CountedUtf16Arg<'call>(/* private fields */);Expand description
A direct UTF-16 argument registered with Excel’s counted D% type.
Implementations§
Source§impl<'call> CountedUtf16Arg<'call>
impl<'call> CountedUtf16Arg<'call>
Sourcepub const fn new(value: ExcelStr<'call>) -> Self
pub const fn new(value: ExcelStr<'call>) -> Self
Wraps a validated counted direct UTF-16 callback argument.
Sourcepub const fn as_excel_str(&self) -> &ExcelStr<'call>
pub const fn as_excel_str(&self) -> &ExcelStr<'call>
Borrows the underlying UTF-16 view for no longer than this callback.
Sourcepub fn into_inner(self) -> ExcelStr<'call>
pub fn into_inner(self) -> ExcelStr<'call>
Returns the callback-borrowed UTF-16 view, consuming this wrapper.
Trait Implementations§
Auto Trait Implementations§
impl<'call> !Send for CountedUtf16Arg<'call>
impl<'call> !Sync for CountedUtf16Arg<'call>
impl<'call> Freeze for CountedUtf16Arg<'call>
impl<'call> RefUnwindSafe for CountedUtf16Arg<'call>
impl<'call> Unpin for CountedUtf16Arg<'call>
impl<'call> UnsafeUnpin for CountedUtf16Arg<'call>
impl<'call> UnwindSafe for CountedUtf16Arg<'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