[][src]Struct rustpython_vm::cformat::CFormatSpec

pub struct CFormatSpec {
    pub mapping_key: Option<String>,
    pub flags: CConversionFlags,
    pub min_field_width: Option<CFormatQuantity>,
    pub precision: Option<CFormatQuantity>,
    pub format_type: CFormatType,
    pub format_char: char,
    // some fields omitted
}

Fields

mapping_key: Option<String>flags: CConversionFlagsmin_field_width: Option<CFormatQuantity>precision: Option<CFormatQuantity>format_type: CFormatTypeformat_char: char

Methods

impl CFormatSpec[src]

pub fn fill_string(
    &self,
    string: String,
    fill_char: char,
    num_prefix_chars: Option<usize>
) -> String
[src]

pub fn format_string(&self, string: String) -> String[src]

pub fn format_number(&self, num: &BigInt) -> String[src]

pub fn format_float(&self, num: f64) -> Result<String, String>[src]

Trait Implementations

impl Debug for CFormatSpec[src]

impl FromStr for CFormatSpec[src]

type Err = (CFormatErrorType, usize)

The associated error which can be returned from parsing.

impl PartialEq<CFormatSpec> for CFormatSpec[src]

impl StructuralPartialEq for CFormatSpec[src]

Auto Trait Implementations

impl RefUnwindSafe for CFormatSpec

impl Send for CFormatSpec

impl Sync for CFormatSpec

impl Unpin for CFormatSpec

impl UnwindSafe for CFormatSpec

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,