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§
Sourcefn 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.
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>
impl<'call, T: FromExcel<'call>> FromExcel<'call> for Option<T>
Source§fn from_excel(value: ExcelValueRef<'call>) -> Result<Self, ConversionError>
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.