Struct rustc_builtin_macros::format_foreign::printf::Format [−][src]
pub struct Format<'a> {
pub span: &'a str,
pub parameter: Option<u16>,
pub flags: &'a str,
pub width: Option<Num>,
pub precision: Option<Num>,
pub length: Option<&'a str>,
pub type_: &'a str,
pub position: InnerSpan,
}Expand description
A single printf-style formatting directive.
Fields
span: &'a strExpand description
The entire original formatting directive.
parameter: Option<u16>Expand description
The (1-based) parameter to be converted.
flags: &'a strExpand description
Formatting flags.
width: Option<Num>Expand description
Minimum width of the output.
precision: Option<Num>Expand description
Precision of the conversion.
length: Option<&'a str>Expand description
Length modifier for the conversion.
type_: &'a strExpand description
Type of parameter being converted.
position: InnerSpanExpand description
Byte offset for the start and end of this formatting directive.
Implementations
impl Format<'_>[src]
impl Format<'_>[src]Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more