Local inner macros
This commit is contained in:
parent
46bd36e17c
commit
dc56077aac
@ -128,7 +128,7 @@
|
|||||||
/// [`Deserializer`]: trait.Deserializer.html
|
/// [`Deserializer`]: trait.Deserializer.html
|
||||||
/// [`Visitor`]: de/trait.Visitor.html
|
/// [`Visitor`]: de/trait.Visitor.html
|
||||||
/// [`Deserializer::deserialize_any`]: trait.Deserializer.html#tymethod.deserialize_any
|
/// [`Deserializer::deserialize_any`]: trait.Deserializer.html#tymethod.deserialize_any
|
||||||
#[macro_export]
|
#[macro_export(local_inner_macros)]
|
||||||
macro_rules! forward_to_deserialize_any {
|
macro_rules! forward_to_deserialize_any {
|
||||||
(<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
|
(<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
|
||||||
$(forward_to_deserialize_any_helper!{$func<$lifetime, $visitor>})*
|
$(forward_to_deserialize_any_helper!{$func<$lifetime, $visitor>})*
|
||||||
@ -157,7 +157,7 @@ macro_rules! forward_to_deserialize_any_method {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[macro_export]
|
#[macro_export(local_inner_macros)]
|
||||||
macro_rules! forward_to_deserialize_any_helper {
|
macro_rules! forward_to_deserialize_any_helper {
|
||||||
(bool<$l:tt, $v:ident>) => {
|
(bool<$l:tt, $v:ident>) => {
|
||||||
forward_to_deserialize_any_method!{deserialize_bool<$l, $v>()}
|
forward_to_deserialize_any_method!{deserialize_bool<$l, $v>()}
|
||||||
|
@ -32,7 +32,7 @@ macro_rules! __private_deserialize {
|
|||||||
|
|
||||||
/// Used only by Serde doc tests. Not public API.
|
/// Used only by Serde doc tests. Not public API.
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[macro_export]
|
#[macro_export(local_inner_macros)]
|
||||||
macro_rules! __serialize_unimplemented {
|
macro_rules! __serialize_unimplemented {
|
||||||
($($func:ident)*) => {
|
($($func:ident)*) => {
|
||||||
$(
|
$(
|
||||||
@ -52,7 +52,7 @@ macro_rules! __serialize_unimplemented_method {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[macro_export]
|
#[macro_export(local_inner_macros)]
|
||||||
macro_rules! __serialize_unimplemented_helper {
|
macro_rules! __serialize_unimplemented_helper {
|
||||||
(bool) => {
|
(bool) => {
|
||||||
__serialize_unimplemented_method!(serialize_bool(bool) -> Ok);
|
__serialize_unimplemented_method!(serialize_bool(bool) -> Ok);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user