When previewing syntax themes, the optionally reference to standard input data (vector of u8) is mapped to an optional u8 slice since it is passed to the respective function as an immutable argument unconditionally.
This also avoids unnecessary indirection because a reference to a Vec is a reference to a reference.
When previewing syntax themes, the optionally reference to standard input data (vector of
u8
) is mapped to an optionalu8
slice since it is passed to the respective function as an immutable argument unconditionally.This also avoids unnecessary indirection because a reference to a
Vec
is a reference to a reference.