Crate inject_lib
source · [−]Modules
Structs
Functions
This takes a string, and cuts off, everything before the last /
.
The intention is, that this will truncate any rust(/Linux?) path (since rust uses /
), to it’s filename, without having to actually look the file up.
This takes a string, and cuts off, everything before the last \
.
The intention is, that this will truncate any windows path (since windows uses \
), to it’s filename, without having to actually look the file up.
This truncates all 0 from the end of a Vec This will keep other 0 entries in the Vec perfectly intact. This has a worst case performance of o(n).