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

Method arg_count

crates/vm/src/buffer.rs:212–218  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

210
211impl FormatCode {
212 pub const fn arg_count(&self) -> usize {
213 match self.code {
214 FormatType::Pad => 0,
215 FormatType::Str | FormatType::Pascal => 1,
216 _ => self.repeat,
217 }
218 }
219
220 pub fn parse<I>(
221 chars: &mut Peekable<I>,

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected