Skip to main content

ExcelOwnedValue

Struct ExcelOwnedValue 

Source
pub struct ExcelOwnedValue<'call> { /* private fields */ }
Expand description

A callback-scoped owner for one result root written by Excel.

The lifetime prevents the owner from outliving the backend/callback capability. The raw-pointer marker deliberately makes this type neither Send nor Sync; copy to ExcelValue before crossing threads.

ⓘ
use excel_api::ExcelOwnedValue;
fn require_send<T: Send>() {}
require_send::<ExcelOwnedValue<'static>>();

Implementations§

Source§

impl<'call> ExcelOwnedValue<'call>

Source

pub fn as_value_ref(&self) -> Result<ExcelValueRef<'_>, DecodeError>

Borrows the active result through the central ownership-bit-masking decoder.

Source

pub fn to_owned_value( &self, limits: &ConversionLimits, ) -> Result<ExcelValue, ConversionError>

Deep-copies without consuming or releasing this result.

Source

pub fn into_owned_value( self, limits: &ConversionLimits, ) -> Result<ExcelValue, ExcelOwnedConversionError>

Deep-copies and then consumes the Excel release obligation.

Source

pub fn release(self) -> Result<(), ExcelReleaseError>

Explicitly consumes this owner and attempts any required release once.

Source

pub fn into_xlfree_transfer(self) -> ExcelXlFreeTransfer<'call>

Consumes this owner into a non-duplicable pre-commit transfer token.

No ownership bit is changed and no raw pointer is exposed here. The final thunk integration remains deliberately crate-internal work for Prompt 08.

Trait Implementations§

Source§

impl Debug for ExcelOwnedValue<'_>

Source§

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

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

impl Drop for ExcelOwnedValue<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'call> !RefUnwindSafe for ExcelOwnedValue<'call>

§

impl<'call> !Send for ExcelOwnedValue<'call>

§

impl<'call> !Sync for ExcelOwnedValue<'call>

§

impl<'call> !UnwindSafe for ExcelOwnedValue<'call>

§

impl<'call> Freeze for ExcelOwnedValue<'call>

§

impl<'call> Unpin for ExcelOwnedValue<'call>

§

impl<'call> UnsafeUnpin for ExcelOwnedValue<'call>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.