usecrate::math::tensor::Tensor;usesuper::AsRefSlice;/// This trait allows to extract the tensor of a [`Tensor`]-based type.
////// This trait allows to consume a value, and extracts the tensor that was wrapped inside, to
/// return it to the caller.
pubtraitIntoTensor{/// The element type of the collection container.
typeElement;/// The type of the collection container.
typeContainer:AsRefSlice<Element = <Selfas IntoTensor>::Element>;/// Consumes `self` and returns an owned tensor.
fninto_tensor(self)->Tensor<Self::Container>;}