pub struct RawExcelValue<'call> { /* private fields */ }Expand description
An XLOPER12 whose storage is owned by Excel for one callback invocation.
This wrapper is deliberately neither Clone, Copy, Send, nor Sync.
ⓘ
use excel_api::RawExcelValue;
fn require_sync<T: Sync>() {}
require_sync::<RawExcelValue<'static>>();ⓘ
use excel_api::RawExcelValue;
fn require_clone<T: Clone>() {}
require_clone::<RawExcelValue<'static>>();Implementations§
Source§impl<'call> RawExcelValue<'call>
impl<'call> RawExcelValue<'call>
Sourcepub unsafe fn from_callback(raw: &'call XLOPER12) -> Self
pub unsafe fn from_callback(raw: &'call XLOPER12) -> Self
Establishes the single unsafe boundary for a callback argument.
§Safety
raw and every pointer-bearing member reachable from it must describe
initialized, properly aligned SDK storage that remains readable and is
not mutated for all of 'call. Counted strings must include their
prefix and payload, null-terminated direct strings have separate
constructors, multis must contain rows * columns initialized elements,
and multi-references must contain count initialized areas.
Sourcepub fn decode(&self) -> Result<ExcelValueRef<'call>, DecodeError>
pub fn decode(&self) -> Result<ExcelValueRef<'call>, DecodeError>
Decodes the raw value after masking Excel’s ownership bits.
Trait Implementations§
Auto Trait Implementations§
impl<'call> !Send for RawExcelValue<'call>
impl<'call> !Sync for RawExcelValue<'call>
impl<'call> Freeze for RawExcelValue<'call>
impl<'call> RefUnwindSafe for RawExcelValue<'call>
impl<'call> Unpin for RawExcelValue<'call>
impl<'call> UnsafeUnpin for RawExcelValue<'call>
impl<'call> UnwindSafe for RawExcelValue<'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