Trait pfmt::Fmt [−][src]
pub trait Fmt { fn format(
&self,
args: &[String],
flags: &[char],
options: &HashMap<String, String>
) -> Result<String, SingleFmtError>; }
This trait drives the formatting of a single placeholder. Placeholder's
arguments, flags and options are passed to the format
method.
Required Methods
fn format(
&self,
args: &[String],
flags: &[char],
options: &HashMap<String, String>
) -> Result<String, SingleFmtError>
&self,
args: &[String],
flags: &[char],
options: &HashMap<String, String>
) -> Result<String, SingleFmtError>
Implementations on Foreign Types
impl Fmt for bool
[src]
impl Fmt for bool
This instance is aware of the following flags:
y
, which changes the output from true/false to yes/no;Y
, which changes the output to Y/N. Common options are recognised.
impl Fmt for char
[src]
impl Fmt for char
This instance has no special flags. Common options are recognised.
impl Fmt for f32
[src]
impl Fmt for f32
This instance is aware of the following flags:
+
, which forces display of the sign;e
, which changes the output to the scientific, or exponential, notation. Common options are recognised. Common numeric options are also recognised.
impl Fmt for f64
[src]
impl Fmt for f64
This instance is aware of the following flags:
+
, which forces display of the sign;e
, which changes the output to scientific format. Common options are recognized. Common numeric options are also recognized.
impl Fmt for i8
[src]
impl Fmt for i8
This instance is aware of the following flags:
+
, which forces display of the sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes output hexadecimal; Common and common numeric options are recognized.
impl Fmt for i16
[src]
impl Fmt for i16
This instance is aware of the following flags:
+
, which forces display of the sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes output hexadecimal; Common and common numeric options are recognized.
impl Fmt for i32
[src]
impl Fmt for i32
This instance is aware of the following flags:
+
, which forces display of the sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes output hexadecimal; Common and common numeric options are recognized.
impl Fmt for i64
[src]
impl Fmt for i64
This instance is aware of the following flags:
+
, which forces display of the sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes output hexadecimal; Common and common numeric options are recognized.
impl Fmt for i128
[src]
impl Fmt for i128
This instance is aware of the following flags:
+
, which forces display of the sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes output hexadecimal; Common and common numeric options are recognized.
impl Fmt for isize
[src]
impl Fmt for isize
This instance is aware of the following flags:
+
, which forces display of the sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes output hexadecimal; Common and common numeric options are recognized.
impl<'a> Fmt for &'a str
[src]
impl<'a> Fmt for &'a str
This instance has no special flags. Common options are recognised.
impl Fmt for String
[src]
impl Fmt for String
This instance has no special flags. Common options are recognised.
impl Fmt for u8
[src]
impl Fmt for u8
This instance is aware of the following flags:
+
, which add a leading plus sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes the output hexadecimal. Common and common numeric options are recognised.
impl Fmt for u16
[src]
impl Fmt for u16
This instance is aware of the following flags:
+
, which add a leading plus sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes the output hexadecimal. Common and common numeric options are recognised.
impl Fmt for u32
[src]
impl Fmt for u32
This instance is aware of the following flags:
+
, which add a leading plus sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes the output hexadecimal. Common and common numeric options are recognised.
impl Fmt for u64
[src]
impl Fmt for u64
This instance is aware of the following flags:
+
, which add a leading plus sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes the output hexadecimal. Common and common numeric options are recognised.
impl Fmt for u128
[src]
impl Fmt for u128
This instance is aware of the following flags:
+
, which add a leading plus sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes the output hexadecimal. Common and common numeric options are recognised.
impl Fmt for usize
[src]
impl Fmt for usize
This instance is aware of the following flags:
+
, which add a leading plus sign;b
, which makes the output binary;o
, which makes the output octal;p
, which in combination with 'b
', 'o
' or 'x
' adds a base prefix to the output.x
, which makes the output hexadecimal. Common and common numeric options are recognised.