MCPcopy Index your code
hub / github.com/RustPython/RustPython / trim_end

Method trim_end

crates/wtf8/src/lib.rs:1071–1074  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1069 }
1070
1071 pub fn trim_end(&self) -> &Self {
1072 let w = self.bytes.trim_end();
1073 unsafe { Wtf8::from_bytes_unchecked(w) }
1074 }
1075
1076 pub fn trim_start_matches(&self, f: impl Fn(CodePoint) -> bool) -> &Self {
1077 let mut iter = self.code_points();

Callers 5

run_shellFunction · 0.80
FormatMessageFunction · 0.80
rstripMethod · 0.80
format_error_funcFunction · 0.80
rstripMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected