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

Function consume_length

crates/common/src/cformat.rs:600–606  ·  view source on GitHub ↗
(iter: &mut ParseIter<I>)

Source from the content-addressed store, hash-verified

598}
599
600fn consume_length<C, I>(iter: &mut ParseIter<I>)
601where
602 C: FormatChar,
603 I: Iterator<Item = C>,
604{
605 iter.next_if(|(_, c)| matches!(c.to_char_lossy(), 'h' | 'l' | 'L'));
606}
607
608fn parse_format_type<C, I>(iter: &mut ParseIter<I>) -> Result<CFormatType, ParsingError>
609where

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected