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>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more