#access the output of Box<dyn Write>

6 messages · Page 1 of 1 (latest)

hearty timber
#

why not make it generic instead

#

so Editor stores a type which is bound to Write

#

to access Box<Cursor<Vec<u8>>> just deref a couple times

#

so boxed_cursor.get_ref()

#

which gives you &Vec<u8>

wraith badge
#

thx i will try it