Ivan Smirnov

Results 269 comments of Ivan Smirnov

(Might also add something like `.has_suffix()` or `.is_unsuffixed()` for convenience? idk)

- Tuple structs = done - Stable macros 1.1 = done I'd add a few more items if I may: - Set up travis build - Polish up the readme...

A few random but related thoughts and notes in addition to the suggestion above: - I had to randomly click around for a while when looking for whether color-eyre is...

Neat! About compile-time const, for pre-1.57, you can use a hack like this btw: ```rust pub(crate) struct Assert; impl Assert { pub const LENGTH_LT_CAPACITY: usize = R - L -...

It's not perfect, but quite readable. Perhaps could be improved by something like ```rust impl Assert { pub const OK: usize = CAP - LEN - 1; /* insufficient array...

> It seems like the length - coming from `s.len()` can't be used there in current Rust, unfortunately. Ah, yea, indeed, it would only work with "true consts"... So what's...

> What's your use case? Since you'd presumably want a mutable string, I'm unsure about the purpose. In my particular case, storing a bunch of hardcoded (immutable) "known objects" in...

Could someone check for `QOI_COLOR (32)`, what's the channel distribution separately for 3-channel and 4-channel images (i.e., which color is dropped?). If it's alpha, then is it really a "new...

Another option would be to not leave the 8-bit space at all (https://github.com/phoboslab/qoi/issues/28#issuecomment-980547560), but then you would have to use wrapping adds/subs throughout, so technically it's a different encoding.

> > Another option would be to not leave the 8-bit space at all ([phoboslab/qoi#28 (comment)](https://github.com/phoboslab/qoi/issues/28#issuecomment-980547560)), but then you would have to use wrapping adds/subs throughout, so technically it's a...