4 ms·
It looks like trait objects could also work for the essay, e.g. the original examples could be achieved as: fn f(seq: &mut Iterator<Item=&u8>) although du
by masklinn 9y ago
It looks like trait objects could also work for the essay, e.g. the original examples could be achieved as:
fn f(seq: &mut Iterator<Item=&u8>)
although due to object-safety constraints they may not be suitable for every case.