announce_std/string.rs
1//! announce mocks of `string` traits. Generated from newer-type-std's copies.
2
3#[allow(unused_imports)]
4use announce::announce;
5
6/// announce mock of [`::std::string::ToString`]: invoke `ToString!` to receive its definition.
7///
8/// The real trait is re-exported under the same path.
9#[announce(mock = ::std::string::ToString)]
10pub trait ToString {
11 fn to_string(&self) -> ::std::string::String;
12}
13
14#[doc(no_inline)]
15pub use ::std::string::ToString;