Skip to main content

FromExcel

Trait FromExcel 

Source
pub trait FromExcel<'call>: Sized {
    // Required method
    fn from_excel(value: ExcelValueRef<'call>) -> Result<Self, ConversionError>;
}
Expand description

Convert one borrowed Excel input into a Rust value without invoking Excel coercion rules.

Required Methods§

Source

fn from_excel(value: ExcelValueRef<'call>) -> Result<Self, ConversionError>

Converts a callback-borrowed value without invoking Excel coercion.

Implementations must not retain callback-scoped pointers in Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'call, T: FromExcel<'call>> FromExcel<'call> for Option<T>

Source§

fn from_excel(value: ExcelValueRef<'call>) -> Result<Self, ConversionError>

Missing and empty values both map to None. Use OptionalValue<T> when that distinction must be retained.

Source§

impl<'call> FromExcel<'call> for String

Source§

impl<'call> FromExcel<'call> for bool

Source§

impl<'call> FromExcel<'call> for f64

Source§

impl<'call> FromExcel<'call> for i16

Source§

impl<'call> FromExcel<'call> for i32

Source§

impl<'call> FromExcel<'call> for u16

Source§

impl<'call> FromExcel<'call> for u32

Implementors§

Source§

impl<'call, T: FromExcel<'call>> FromExcel<'call> for OptionalValue<T>

Source§

impl<'call> FromExcel<'call> for ExcelArray

Source§

impl<'call> FromExcel<'call> for ExcelError

Source§

impl<'call> FromExcel<'call> for ExcelReferenceArg<'call>

Source§

impl<'call> FromExcel<'call> for ExcelString

Source§

impl<'call> FromExcel<'call> for ExcelValue

Source§

impl<'call> FromExcel<'call> for ExcelValueArg<'call>