mirror of
https://github.com/Noratrieb/mono-fmt.git
synced 2026-01-17 08:45:05 +01:00
move to private
This commit is contained in:
parent
5b22878e81
commit
dd9c6aa770
1 changed files with 5 additions and 4 deletions
|
|
@ -4,13 +4,10 @@ mod args;
|
||||||
mod opts;
|
mod opts;
|
||||||
mod write;
|
mod write;
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
pub use mono_fmt_macro::__format_args;
|
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! format_args {
|
macro_rules! format_args {
|
||||||
($($tt:tt)*) => {
|
($($tt:tt)*) => {
|
||||||
$crate::__format_args!($crate $($tt)*)
|
$crate::_private::__format_args!($crate $($tt)*)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -98,12 +95,16 @@ pub fn format<A: Arguments>(args: A) -> String {
|
||||||
string
|
string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Not part of the public API.
|
||||||
|
#[doc(hidden)]
|
||||||
mod _private {
|
mod _private {
|
||||||
pub use crate::args::{ConstWidthArg, DebugArg, DisplayArg, Str};
|
pub use crate::args::{ConstWidthArg, DebugArg, DisplayArg, Str};
|
||||||
|
|
||||||
pub use crate::opts::{
|
pub use crate::opts::{
|
||||||
WithAlternate, WithCenterAlign, WithFill, WithLeftAlign, WithRightAlign, WithWidth,
|
WithAlternate, WithCenterAlign, WithFill, WithLeftAlign, WithRightAlign, WithWidth,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub use mono_fmt_macro::__format_args;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue