Crate synext

Source

Modules§

syntax

Constants§

BUILTIN_TYPE_OPTION
BUILTIN_TYPE_VEC

Functions§

make_new_compile_error
make_new_spanned_compile_error
try_derive_input
Try parse proc_macro::TokenStream to syn::DeriveInput.
try_extract_attribute_args
@since 0.3.0 Try to extract the specified attribute value from an attribute macro.
try_extract_attribute_first_args
@since 0.3.0 Try to extract the first attribute value from an attribute macro.
try_extract_field_attribute_path_attribute
Try to extract the specified path attribute value from a field’s attributes.
try_extract_inner_types
Try to extract the inner type of syn::Type
try_match_fields
Try parse syn::DeriveInput matches fields Punctuated<Field, Comma>.
try_parse_named_fields
Try parse syn::DeriveInput named fields Punctuated<Field, Comma>.
try_parse_unnamed_fields
Try parse syn::DeriveInput unnamed fields Punctuated<Field, Comma>.
try_predicate_is_ident
try_predicate_is_not_ident
try_predicate_is_not_option
Try to predicate that syn::Type is not core::option::Option<T> type.
try_predicate_is_not_option_and_vec
Try to predicate that syn::Type is neither of type core::option::Option<T> nor of type std::vec::Vec<T>
try_predicate_is_not_vec
Try to predicate that syn::Type is not std::vec::Vec<T> type.
try_predicate_is_option
Try to predicate that syn::Type is core::option::Option<T> type.
try_predicate_is_type
try_predicate_is_vec
Try to predicate that syn::Type is std::vec::Vec<T> type.
try_predicate_path_segments_is_empty
try_predicate_path_segments_is_not_empty
try_unwrap_option
Try unwrap syn::Type core::option::Option<T> inner types.
try_unwrap_types
try_unwrap_vec
Try unwrap syn::Type Vec inner types.