You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the type I map to has known const size ([u8; 4]), size_hint should be able to precisely return (40, Some(40)), and the iterator specialization should implement TrustedLen.
Currently, it returns (0, None). This means that to implement this function efficiently, I'd need to manually do Vec::with_capacity(pixels.len() * 4).