vstd_extra/external/fmt.rs
1// SPDX-License-Identifier: MPL-2.0
2//! Trusted formatting API specifications missing from `vstd`.
3use core::fmt::{Arguments, Error, Formatter};
4use vstd::prelude::*;
5
6verus! {
7
8/// Writes literals and formatted arguments to the formatter's underlying writer.
9///
10/// `vstd` checks the arguments' formatting preconditions when constructing
11/// `Arguments`. The underlying writer and argument callbacks may return errors
12/// or unwind, so this contract guarantees neither success nor absence of unwind.
13pub assume_specification<'a>[ Formatter::<'a>::write_fmt ](
14 formatter: &mut Formatter<'a>,
15 args: Arguments<'_>,
16) -> Result<(), Error>
17;
18
19} // verus!