collections::fmt::Arguments

Struct collections::fmt::Arguments

pub struct Arguments<'a> { /* fields omitted */ }

This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.

The format_args! macro will safely create an instance of this structure and pass it to a function or closure, passed as the first argument. The macro validates the format string at compile-time so usage of the write and format functions can be safely performed.

Trait Implementations

impl<'a> Copy for Arguments<'a> [src]

impl<'a> Debug for Arguments<'a> [src]

Formats the value using the given formatter.

impl<'a> Clone for Arguments<'a> [src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Display for Arguments<'a> [src]

Formats the value using the given formatter. Read more

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/collections/fmt/struct.Arguments.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部