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

Method sign_string

crates/common/src/cformat.rs:140–148  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

138impl CConversionFlags {
139 #[inline]
140 pub const fn sign_string(&self) -> &'static str {
141 if self.contains(Self::SIGN_CHAR) {
142 "+"
143 } else if self.contains(Self::BLANK_SIGN) {
144 " "
145 } else {
146 ""
147 }
148 }
149}
150
151#[derive(Debug, PartialEq, Clone, Copy)]

Callers 2

format_numberMethod · 0.80
format_floatMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected