pub struct ReturnPlan { /* private fields */ }Expand description
Immutable, fully validated description of a future return allocation.
Implementations§
Source§impl ReturnPlan
impl ReturnPlan
Sourcepub fn materialize(self) -> Result<ExcelReturn, ReturnMaterializationError>
pub fn materialize(self) -> Result<ExcelReturn, ReturnMaterializationError>
Materializes this pointer-free plan into stable DLL-owned return storage.
Call ExcelReturn::into_raw_for_excel only at the generated thunk’s
final return boundary so Excel can later invoke xlAutoFree12 once.
Source§impl ReturnPlan
impl ReturnPlan
Sourcepub const fn root(&self) -> &PlannedValue
pub const fn root(&self) -> &PlannedValue
Returns the validated logical root; no raw ABI pointer exists yet.
Sourcepub const fn totals(&self) -> &ReturnStorageTotals
pub const fn totals(&self) -> &ReturnStorageTotals
Returns exact ABI storage accounting for later materialization.
Sourcepub const fn strategy(&self) -> ReturnOwnershipStrategy
pub const fn strategy(&self) -> ReturnOwnershipStrategy
Returns the ownership transfer strategy selected by this plan.
Trait Implementations§
Source§impl Clone for ReturnPlan
impl Clone for ReturnPlan
Source§impl Debug for ReturnPlan
impl Debug for ReturnPlan
Source§impl PartialEq for ReturnPlan
impl PartialEq for ReturnPlan
impl StructuralPartialEq for ReturnPlan
Auto Trait Implementations§
impl Freeze for ReturnPlan
impl RefUnwindSafe for ReturnPlan
impl Send for ReturnPlan
impl Sync for ReturnPlan
impl Unpin for ReturnPlan
impl UnsafeUnpin for ReturnPlan
impl UnwindSafe for ReturnPlan
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