[−][src]Struct rustc_builtin_macros::format_foreign::printf::Format
A single printf-style formatting directive.
Fields
span: &'a strThe entire original formatting directive.
parameter: Option<u16>The (1-based) parameter to be converted.
flags: &'a strFormatting flags.
width: Option<Num>Minimum width of the output.
precision: Option<Num>Precision of the conversion.
length: Option<&'a str>Length modifier for the conversion.
type_: &'a strType of parameter being converted.
position: InnerSpanByte offset for the start and end of this formatting directive.
Implementations
impl<'_> Format<'_>[src]
pub fn translate(&self) -> Option<String>[src]
Translate this directive into an equivalent Rust formatting directive.
Returns None in cases where the printf directive does not have an exact Rust
equivalent, rather than guessing.
Trait Implementations
impl<'a> Clone for Format<'a>[src]
impl<'a> Debug for Format<'a>[src]
impl<'a> PartialEq<Format<'a>> for Format<'a>[src]
impl<'a> StructuralPartialEq for Format<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Format<'a>
impl<'a> Send for Format<'a>
impl<'a> Sync for Format<'a>
impl<'a> Unpin for Format<'a>
impl<'a> UnwindSafe for Format<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,