Struct rustpython_common::cformat::CFormatStrOrBytes
source · pub struct CFormatStrOrBytes<S> { /* private fields */ }
Implementations§
source§impl<S> CFormatStrOrBytes<S>
impl<S> CFormatStrOrBytes<S>
pub fn check_specifiers(&self) -> Option<(usize, bool)>
pub fn iter(&self) -> impl Iterator<Item = &(usize, CFormatPart<S>)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut (usize, CFormatPart<S>)>
source§impl CFormatStrOrBytes<Vec<u8, Global>>
impl CFormatStrOrBytes<Vec<u8, Global>>
pub fn parse<I: Iterator<Item = u8>>(
iter: &mut ParseIter<I>
) -> Result<Self, CFormatError>
pub fn parse_from_bytes(bytes: &[u8]) -> Result<Self, CFormatError>
Trait Implementations§
source§impl<S: Debug> Debug for CFormatStrOrBytes<S>
impl<S: Debug> Debug for CFormatStrOrBytes<S>
source§impl<S: PartialEq> PartialEq<CFormatStrOrBytes<S>> for CFormatStrOrBytes<S>
impl<S: PartialEq> PartialEq<CFormatStrOrBytes<S>> for CFormatStrOrBytes<S>
source§fn eq(&self, other: &CFormatStrOrBytes<S>) -> bool
fn eq(&self, other: &CFormatStrOrBytes<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.