memrchr

Function memrchr 

Source
pub fn memrchr(x: u8, text: &[u8]) -> Option<usize>
Expand description

Returns the last index matching the byte x in text.

This is directly copy pasted from the internal library with some modifications to make it work for me there were no unstable features so I thought I’ll skip a dependency and add this.