Enum rustpython_format::cformat::CFormatPart
source · pub enum CFormatPart<T> {
Literal(T),
Spec(CFormatSpec),
}
Variants§
Literal(T)
Spec(CFormatSpec)
Implementations§
source§impl<T> CFormatPart<T>
impl<T> CFormatPart<T>
Trait Implementations§
source§impl<T: Debug> Debug for CFormatPart<T>
impl<T: Debug> Debug for CFormatPart<T>
source§impl<T: PartialEq> PartialEq for CFormatPart<T>
impl<T: PartialEq> PartialEq for CFormatPart<T>
source§fn eq(&self, other: &CFormatPart<T>) -> bool
fn eq(&self, other: &CFormatPart<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T> StructuralPartialEq for CFormatPart<T>
Auto Trait Implementations§
impl<T> Freeze for CFormatPart<T>where
T: Freeze,
impl<T> RefUnwindSafe for CFormatPart<T>where
T: RefUnwindSafe,
impl<T> Send for CFormatPart<T>where
T: Send,
impl<T> Sync for CFormatPart<T>where
T: Sync,
impl<T> Unpin for CFormatPart<T>where
T: Unpin,
impl<T> UnwindSafe for CFormatPart<T>where
T: 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