pub fn deserialize<'a, D>(&'a self) -> Result<RangeDeserializer<'a, T, D>, DeError>
    where
        T: ToCellDeserializer<'a>,
        D: DeserializeOwned,
    {
        RangeDeserializerBuilder::new().from_range(self)
    }
/// Build a `RangeDeserializer` from this configuration.
///
/// # Example
///
/// ```
/// # use calamine::{Reader, Error, open_workbook, Xlsx, RangeDeserializerBuilder};
/// fn main() -> Result<(), Error> {
///     let path = format!("{}/tests/temperature.xlsx", env!("CARGO_MANIFEST_DIR"));
///     let mut workbook: Xlsx<_> = open_workbook(path)?;
///     let mut sheet = workbook.worksheet_range("Sheet1")
///         .ok_or(Error::Msg("Cannot find 'Sheet1'"))??;
///     let mut iter = sheet.deserialize()?;
///
///     if let Some(result) = iter.next() {
///         let (label, value): (String, f64) = result?;
///         assert_eq!(label, "celsius");
///         assert_eq!(value, 22.2222);
///
///         Ok(())
///     } else {
///         return Err(From::from("expected at least one record but got none"));
///     }
/// }
/// ```
Build a `RangeDeserializer` from this configuration.
Build a ` RangeDeserializer ` from this configuration .
pub fn deserialize<'a, D>(&'a self) -> Result<RangeDeserializer<'a, T, D>, DeError>
    where
        T: ToCellDeserializer<'a>,
        D: DeserializeOwned,
    {
        RangeDeserializerBuilder::new().from_range(self)
    }
pub fn deserialize < ' a , D > ( & ' a self ) -> Result < RangeDeserializer < ' a , T , D > , DeError > where T : ToCellDeserializer < ' a > , D : DeserializeOwned , { RangeDeserializerBuilder :: new ( ) . from_range ( self ) }
Build a `RangeDeserializer` from this configuration.
Build a ` RangeDeserializer ` from this configuration .
&'a self
example
None
use calamine::{reader, error, open_workbook, xlsx, rangedeserializerbuilder};
fn main() -> Result<(), Error> {
let path = format!("{}/tests/temperature.xlsx", env!("CARGO_MANIFEST_DIR"));
let mut workbook: Xlsx<_> = open_workbook(path)?;
let mut sheet = workbook.worksheet_range("Sheet1")
.ok_or(Error::Msg("Cannot find 'Sheet1'"))??;
let mut iter = sheet.deserialize()?.

if let Some(result) = iter.next() {
let (label, value): (String, f64) = result?;
assert_eq!(label, "celsius");
assert_eq!(value, 22.2222).

Ok(())
} else {
return Err(From::from("expected at least one record but got none"));
}
}
```
fn main () - > Result< () Error > { let path = format! ( " {} / tests / temperature . xlsx " env! ( " CARGO_MANIFEST_DIR " )) ; let mut workbook : Xlsx<_ > = open_workbook ( path ) ? ; let mut sheet = workbook . worksheet_range ( " Sheet1 " ) . ok_or ( Error :: Msg ( " Cannot find ' Sheet1 ' " )) ?? ; let mut iter = sheet . deserialize () ? . if let Some ( result ) = iter . next () { let ( label value ) : ( String f64 ) = result? ; assert_eq! ( label " celsius " ) ; assert_eq! ( value 22 . 2222 ) . Ok (( )) } else { return Err ( From :: from ( " expected at least one record but got none " )) ; } } ` ` `