8
8
9
9
macro_rules! want_macro {
10
10
( $t: expr, $n: ident, $isf: ident, $asf: ident) => {
11
- /// Helper that returns an Option<Value::$t> .
11
+ /// Helper that returns an ` Option<Value>` .
12
12
/// You can optionally pass a JSON pointer to retrieve a
13
13
/// nested key.
14
14
#[ macro_export]
@@ -72,7 +72,7 @@ want_macro!("Object", wantobj, is_object, as_object);
72
72
// need_macro!("Array", needarray, is_array, as_array);
73
73
// need_macro!("Object", needobj, is_object, as_object);
74
74
75
- /// Helper that returns a Result<Value::Null>.
75
+ /// Helper that returns a ` Result<Value::Null>` .
76
76
/// You can optionally pass a JSON pointer to retrieve a nested key.
77
77
#[ macro_export]
78
78
macro_rules! neednull {
@@ -89,7 +89,7 @@ macro_rules! neednull {
89
89
} ) ;
90
90
}
91
91
92
- /// Helper that returns a Result<Value::Bool>.
92
+ /// Helper that returns a ` Result<Value::Bool>` .
93
93
/// You can optionally pass a JSON pointer to retrieve a nested key.
94
94
#[ macro_export]
95
95
macro_rules! needbool {
@@ -106,7 +106,7 @@ macro_rules! needbool {
106
106
} ) ;
107
107
}
108
108
109
- /// Helper that returns a Result<Value::I64>.
109
+ /// Helper that returns a ` Result<Value::I64>` .
110
110
/// You can optionally pass a JSON pointer to retrieve a nested key.
111
111
#[ macro_export]
112
112
macro_rules! needi64 {
@@ -123,7 +123,7 @@ macro_rules! needi64 {
123
123
} ) ;
124
124
}
125
125
126
- /// Helper that returns a Result<Value::U64>.
126
+ /// Helper that returns a ` Result<Value::U64>` .
127
127
/// You can optionally pass a JSON pointer to retrieve a nested key.
128
128
#[ macro_export]
129
129
macro_rules! needu64 {
@@ -140,7 +140,7 @@ macro_rules! needu64 {
140
140
} ) ;
141
141
}
142
142
143
- /// Helper that returns a Result<Value::F64>.
143
+ /// Helper that returns a ` Result<Value::F64>` .
144
144
/// You can optionally pass a JSON pointer to retrieve a nested key.
145
145
#[ macro_export]
146
146
macro_rules! needf64 {
@@ -157,7 +157,7 @@ macro_rules! needf64 {
157
157
} ) ;
158
158
}
159
159
160
- /// Helper that returns a Result<Value::String>.
160
+ /// Helper that returns a ` Result<Value::String>` .
161
161
/// You can optionally pass a JSON pointer to retrieve a nested key.
162
162
#[ macro_export]
163
163
macro_rules! needstr {
@@ -174,7 +174,7 @@ macro_rules! needstr {
174
174
} ) ;
175
175
}
176
176
177
- /// Helper that returns a Result<Value::Array>.
177
+ /// Helper that returns a ` Result<Value::Array>` .
178
178
/// You can optionally pass a JSON pointer to retrieve a nested key.
179
179
#[ macro_export]
180
180
macro_rules! needarray {
@@ -191,7 +191,7 @@ macro_rules! needarray {
191
191
} ) ;
192
192
}
193
193
194
- /// Helper that returns a Result<Value::Object>.
194
+ /// Helper that returns a ` Result<Value::Object>` .
195
195
/// You can optionally pass a JSON pointer to retrieve a nested key.
196
196
#[ macro_export]
197
197
macro_rules! needobj {
0 commit comments