Lines Matching full:give
270 //! fn give<T>() -> T {
274 //! let _ = litrs::Literal::<String>::from(give::<litrs::BoolLit>());
275 //! let _ = litrs::Literal::<String>::from(give::<litrs::IntegerLit<String>>());
276 //! let _ = litrs::Literal::<String>::from(give::<litrs::FloatLit<String>>());
277 //! let _ = litrs::Literal::<String>::from(give::<litrs::CharLit<String>>());
278 //! let _ = litrs::Literal::<String>::from(give::<litrs::StringLit<String>>());
279 //! let _ = litrs::Literal::<String>::from(give::<litrs::ByteLit<String>>());
280 //! let _ = litrs::Literal::<String>::from(give::<litrs::ByteStringLit<String>>());
282 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::BoolLit>());
283 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::IntegerLit<&'static str>>());
284 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::FloatLit<&'static str>>());
285 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::CharLit<&'static str>>());
286 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::StringLit<&'static str>>());
287 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::ByteLit<&'static str>>());
288 //! let _ = litrs::Literal::<&'static str>::from(give::<litrs::ByteStringLit<&'static str>>());
291 //! let _ = litrs::Literal::from(give::<proc_macro::Literal>());
292 //! let _ = litrs::Literal::from(give::<&proc_macro::Literal>());
294 //! let _ = litrs::Literal::try_from(give::<proc_macro::TokenTree>());
295 //! let _ = litrs::Literal::try_from(give::<&proc_macro::TokenTree>());
298 //! let _ = litrs::IntegerLit::try_from(give::<proc_macro::Literal>());
299 //! let _ = litrs::IntegerLit::try_from(give::<&proc_macro::Literal>());
301 //! let _ = litrs::FloatLit::try_from(give::<proc_macro::Literal>());
302 //! let _ = litrs::FloatLit::try_from(give::<&proc_macro::Literal>());
304 //! let _ = litrs::CharLit::try_from(give::<proc_macro::Literal>());
305 //! let _ = litrs::CharLit::try_from(give::<&proc_macro::Literal>());
307 //! let _ = litrs::StringLit::try_from(give::<proc_macro::Literal>());
308 //! let _ = litrs::StringLit::try_from(give::<&proc_macro::Literal>());
310 //! let _ = litrs::ByteLit::try_from(give::<proc_macro::Literal>());
311 //! let _ = litrs::ByteLit::try_from(give::<&proc_macro::Literal>());
313 //! let _ = litrs::ByteStringLit::try_from(give::<proc_macro::Literal>());
314 //! let _ = litrs::ByteStringLit::try_from(give::<&proc_macro::Literal>());
317 //! let _ = litrs::BoolLit::try_from(give::<proc_macro::TokenTree>());
318 //! let _ = litrs::BoolLit::try_from(give::<&proc_macro::TokenTree>());
320 //! let _ = litrs::IntegerLit::try_from(give::<proc_macro::TokenTree>());
321 //! let _ = litrs::IntegerLit::try_from(give::<&proc_macro::TokenTree>());
323 //! let _ = litrs::FloatLit::try_from(give::<proc_macro::TokenTree>());
324 //! let _ = litrs::FloatLit::try_from(give::<&proc_macro::TokenTree>());
326 //! let _ = litrs::CharLit::try_from(give::<proc_macro::TokenTree>());
327 //! let _ = litrs::CharLit::try_from(give::<&proc_macro::TokenTree>());
329 //! let _ = litrs::StringLit::try_from(give::<proc_macro::TokenTree>());
330 //! let _ = litrs::StringLit::try_from(give::<&proc_macro::TokenTree>());
332 //! let _ = litrs::ByteLit::try_from(give::<proc_macro::TokenTree>());
333 //! let _ = litrs::ByteLit::try_from(give::<&proc_macro::TokenTree>());
335 //! let _ = litrs::ByteStringLit::try_from(give::<proc_macro::TokenTree>());
336 //! let _ = litrs::ByteStringLit::try_from(give::<&proc_macro::TokenTree>());
350 //! fn give<T>() -> T {
354 //! let _ = litrs::Literal::from(give::<proc_macro2::Literal>());
355 //! let _ = litrs::Literal::from(give::<&proc_macro2::Literal>());
357 //! let _ = litrs::Literal::try_from(give::<proc_macro2::TokenTree>());
358 //! let _ = litrs::Literal::try_from(give::<&proc_macro2::TokenTree>());
361 //! let _ = litrs::IntegerLit::try_from(give::<proc_macro2::Literal>());
362 //! let _ = litrs::IntegerLit::try_from(give::<&proc_macro2::Literal>());
364 //! let _ = litrs::FloatLit::try_from(give::<proc_macro2::Literal>());
365 //! let _ = litrs::FloatLit::try_from(give::<&proc_macro2::Literal>());
367 //! let _ = litrs::CharLit::try_from(give::<proc_macro2::Literal>());
368 //! let _ = litrs::CharLit::try_from(give::<&proc_macro2::Literal>());
370 //! let _ = litrs::StringLit::try_from(give::<proc_macro2::Literal>());
371 //! let _ = litrs::StringLit::try_from(give::<&proc_macro2::Literal>());
373 //! let _ = litrs::ByteLit::try_from(give::<proc_macro2::Literal>());
374 //! let _ = litrs::ByteLit::try_from(give::<&proc_macro2::Literal>());
376 //! let _ = litrs::ByteStringLit::try_from(give::<proc_macro2::Literal>());
377 //! let _ = litrs::ByteStringLit::try_from(give::<&proc_macro2::Literal>());
380 //! let _ = litrs::BoolLit::try_from(give::<proc_macro2::TokenTree>());
381 //! let _ = litrs::BoolLit::try_from(give::<&proc_macro2::TokenTree>());
383 //! let _ = litrs::IntegerLit::try_from(give::<proc_macro2::TokenTree>());
384 //! let _ = litrs::IntegerLit::try_from(give::<&proc_macro2::TokenTree>());
386 //! let _ = litrs::FloatLit::try_from(give::<proc_macro2::TokenTree>());
387 //! let _ = litrs::FloatLit::try_from(give::<&proc_macro2::TokenTree>());
389 //! let _ = litrs::CharLit::try_from(give::<proc_macro2::TokenTree>());
390 //! let _ = litrs::CharLit::try_from(give::<&proc_macro2::TokenTree>());
392 //! let _ = litrs::StringLit::try_from(give::<proc_macro2::TokenTree>());
393 //! let _ = litrs::StringLit::try_from(give::<&proc_macro2::TokenTree>());
395 //! let _ = litrs::ByteLit::try_from(give::<proc_macro2::TokenTree>());
396 //! let _ = litrs::ByteLit::try_from(give::<&proc_macro2::TokenTree>());
398 //! let _ = litrs::ByteStringLit::try_from(give::<proc_macro2::TokenTree>());
399 //! let _ = litrs::ByteStringLit::try_from(give::<&proc_macro2::TokenTree>());