fn cast_data<Source: Datum + crate::datum::TryInto<Target>, Target: Datum>(
        &self,
    ) -> TractResult<Vec<Target>> {
        self.as_slice::<Source>()?.iter().map(|s| s.try_into()).collect()
    }
/// Convert data to a new DatumType.
Convert data to a new DatumType.
Convert data to a new DatumType .
fn cast_data<Source: Datum + crate::datum::TryInto<Target>, Target: Datum>(
        &self,
    ) -> TractResult<Vec<Target>> {
        self.as_slice::<Source>()?.iter().map(|s| s.try_into()).collect()
    }
fn cast_data < Source : Datum + crate :: datum :: TryInto < Target > , Target : Datum > ( & self , ) -> TractResult < Vec < Target > > { self . as_slice :: < Source > ( ) ? . iter ( ) . map ( | s | s . try_into ( ) ) . collect ( ) }
Convert data to a new DatumType.
Convert data to a new DatumType .
&self
&self