String.rs
Remove Leading and Trailing Characters
Python strip & Rust trim
Spaces
Any Character
Any Character”s”
Complex Condition
Python lstrip & Rust trim_left
Spaces
Any Character
Any Character”s”
Complex Condition
Python rstrip & Rust trim_right
Spaces
Any Character
Any Character”s”
Complex Condition
Separate Strings by Specific Separators
Python split & Rust split_whitespace
by Whitespace (no upper bound)
by Whitespace (with upper bound)
Python split & Rust split
by Any Character (no upper bound)
by Any Character”s” (no upper bound)
by Any String (no upper bound)
by Any String”s” (no upper bound)
by Complex Condition (no upper bound)
by Regular Expression (no upper bound)
Python split & Rust splitn
by Any Character (with upper bound)
by Any Character”s” (with upper bound)
by Any String (with upper bound)
by Any String”s” (with upper bound)
by Complex Condition (with upper bound)
by Regular Expression (with upper bound)
Python rsplit & Rust rsplit
Python rsplit & Rust rsplitn
Python splitlines & Rust lines
String.rs
Docs
»
String Manipulation
View page source
String Manipulation
ΒΆ
Table of Contents:
Remove Leading and Trailing Characters
Python strip & Rust trim
Python lstrip & Rust trim_left
Python rstrip & Rust trim_right
Separate Strings by Specific Separators
Python split & Rust split_whitespace
Python split & Rust split
Python split & Rust splitn
Python rsplit & Rust rsplit
Python rsplit & Rust rsplitn
Python splitlines & Rust lines