原书出处
Rust编程之道
08 字符串与集合类型 8.1 字符串
个StrSearcherImpl枚举体。
StrSearcherImpl枚举体包含的两个变体Empty(EmptyNeedle)和TwoWay(TwoWaySearcher),分别代表处理空字符串和非空字符串两种情况。当处理空字符串时,实际使用 EmptyNeedle来处理;
当处理非空字符串时,实际使用TwoWay
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Rust编程之道/_epub-src/text/part0014_split_001.html
EPUB SHA-256:585074c6844ba06a529a7623f659130564e9907ec38a9d661f661974f9787ac8