Struct rustpython_format::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>>
impl CFormatStrOrBytes<Vec<u8>>
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 for CFormatStrOrBytes<S>
impl<S: PartialEq> PartialEq 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 ==
.impl<S> StructuralPartialEq for CFormatStrOrBytes<S>
Auto Trait Implementations§
impl<S> Freeze for CFormatStrOrBytes<S>
impl<S> RefUnwindSafe for CFormatStrOrBytes<S>where
S: RefUnwindSafe,
impl<S> Send for CFormatStrOrBytes<S>where
S: Send,
impl<S> Sync for CFormatStrOrBytes<S>where
S: Sync,
impl<S> Unpin for CFormatStrOrBytes<S>where
S: Unpin,
impl<S> UnwindSafe for CFormatStrOrBytes<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more