pub enum ExcelValue {
Number(f64),
Integer(i32),
Boolean(bool),
Error(ExcelError),
Missing,
Empty,
Text(ExcelString),
Array(ExcelArray),
}Expand description
Ordinary owned Rust representation of an Excel value.
Every variant is independent of callback storage. References deliberately remain outside this semantic value model until an owned-reference contract is specified.
Variants§
Number(f64)
An IEEE-754 worksheet number.
Integer(i32)
An Excel integer represented as an i32.
Boolean(bool)
An Excel Boolean.
Error(ExcelError)
A controlled Excel worksheet error.
Missing
An omitted Excel argument.
Empty
An empty Excel value.
Text(ExcelString)
Owned UTF-16 text.
Array(ExcelArray)
An owned rectangular array.
Implementations§
Source§impl ExcelValue
impl ExcelValue
Sourcepub fn from_borrowed(value: ExcelValueRef<'_>) -> Result<Self, ConversionError>
pub fn from_borrowed(value: ExcelValueRef<'_>) -> Result<Self, ConversionError>
Deep-copies a callback value using ConversionLimits::default.
Sourcepub fn from_borrowed_with_limits(
value: ExcelValueRef<'_>,
limits: &ConversionLimits,
) -> Result<Self, ConversionError>
pub fn from_borrowed_with_limits( value: ExcelValueRef<'_>, limits: &ConversionLimits, ) -> Result<Self, ConversionError>
Deep-copies a callback value after a non-allocating preflight pass.
Trait Implementations§
Source§impl Clone for ExcelValue
impl Clone for ExcelValue
Source§impl Debug for ExcelValue
impl Debug for ExcelValue
Source§impl From<ExcelValue> for ExcelReturnValue
impl From<ExcelValue> for ExcelReturnValue
Source§fn from(value: ExcelValue) -> Self
fn from(value: ExcelValue) -> Self
Converts to this type from the input type.
Source§impl<'call> FromExcel<'call> for ExcelValue
impl<'call> FromExcel<'call> for ExcelValue
Source§fn from_excel(value: ExcelValueRef<'call>) -> Result<Self, ConversionError>
fn from_excel(value: ExcelValueRef<'call>) -> Result<Self, ConversionError>
Converts a callback-borrowed value without invoking Excel coercion. Read more
Source§impl IntoExcel for ExcelValue
impl IntoExcel for ExcelValue
Source§fn into_excel(self) -> Result<ExcelValue, ConversionError>
fn into_excel(self) -> Result<ExcelValue, ConversionError>
Produces an owned semantic Excel value suitable for later return planning.
Source§impl PartialEq for ExcelValue
impl PartialEq for ExcelValue
impl StructuralPartialEq for ExcelValue
Auto Trait Implementations§
impl Freeze for ExcelValue
impl RefUnwindSafe for ExcelValue
impl Send for ExcelValue
impl Sync for ExcelValue
impl Unpin for ExcelValue
impl UnsafeUnpin for ExcelValue
impl UnwindSafe for ExcelValue
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