Can I use `replace` method for Vec<u8>?

str::replace is useful and I wanna a replace on Vec. Can i just use std to implement for it?

Many use cases of str-analogous API for [u8] are covered by the bstr crate. E. g. here's their replace method. Would that work for you?

1 Like

Thanks of Mr.Sakamoto :innocent:. I am giving a try

:black_cat: :smiley_cat:

2 Likes

It is great that I found it's possible to implement extern structions by using traits. Well helpful for me :smiley_cat:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.