Note the 'i: 'v where 'v is the lifetime of the data of the array, and 'i is the lifetime of the array itself.
This constraint is impossible to satisfy, the lifetime of the array is always shorter than the lifetime of the data of the array.
Thanks ❤️ ! If the function doesnt really care about 'i: 'v vs 'v: 'i, I think the Rusty thing to do is just to remove the bound entirely. Anyway, this solves my problem
The current implementation of
impl IntoValueTensor for &CowArray
is:Note the
'i: 'v
where'v
is the lifetime of the data of the array, and'i
is the lifetime of the array itself. This constraint is impossible to satisfy, the lifetime of the array is always shorter than the lifetime of the data of the array.Thanks for the support! Love the library