pub fn TrimLeft(s: &[byte], cutset: impl AsRef<[byte]>) -> &[byte] ⓘExpand description
TrimLeft returns a subslice of s by slicing off all leading UTF-8-encoded code points contained in cutset.
zh-cn
返回将s前端所有cutset包含的unicode码值都去掉的子切片§Example
use gostd_bytes as bytes;
assert_eq!("Hello, Gophers!!!".as_bytes(),bytes::TrimLeft("¡¡¡Hello, Gophers!!!".as_bytes(), "!¡".as_bytes()))