MCPcopy Create free account

hub / github.com/PoignardAzur/venial / functions

Functions215 in github.com/PoignardAzur/venial

Methodfield_tokens
Returns a collection of tokens that can be used to exhaustively access the struct's fields. If the struct is a tuple struct, span-less integer litera
src/types_edition.rs:317
Methodfield_types
Returns a collection of references to the struct's field types.
src/types_edition.rs:333
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/types.rs:880
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/punctuated.rs:88
Methodfmt
(&self, formatter: &mut std::fmt::Formatter)
src/error.rs:165
Methodfrom_predicate
Create where-clause with a single predicate.
src/types_edition.rs:746
Methodgeneric_params_mut
Returns the [`GenericParamList`], if any, of the declaration. For instance, this will return Some for `struct MyStruct<A, B, C> { ... }`, Some for `i
src/types_edition.rs:89
Methodget_single_path_segment
Returns Some if the attribute has a single path segment, eg `#[hello(...)]`. Returns None if the attribute has multiple segments, eg `#[hello::world(.
src/types_edition.rs:490
Methodget_single_type
Returns Some if the variant is a wrapper around a single type. Returns None otherwise.
src/types_edition.rs:533
Methodget_value_tokens
Returns `foo + bar` for `#[hello = foo + bar]` and `#[hello(foo + bar)]`. Returns an empty slice for `#[hello]`.
src/types_edition.rs:508
Functioninterpret_ty_expr_from_declarative_macro
()
src/tests.rs:1320
Functioninterpret_ty_expr_generic_as_path
()
src/tests.rs:1296
Functioninterpret_ty_expr_invalid_as_path
()
src/tests.rs:1309
Functioninterpret_ty_expr_simple_as_path
()
src/tests.rs:1284
Methodis_c_enum
Returns true if every single variant is empty. ``` # use venial::parse_item; # use quote::quote; let enum_type = parse_item(quote!( enum MyEnum { A,
src/types_edition.rs:358
Methodis_const
Returns true if the generic param is a const param.
src/types_edition.rs:681
Methodis_static
True if this is a `static`, false if `const`.
src/types.rs:333
Methodis_ty
Returns true if the generic param is a type param.
src/types_edition.rs:676
Methodlifetime
Create new lifetime param from name. ``` # use venial::GenericParam; GenericParam::lifetime("a") # ; ```
src/types_edition.rs:582
Methodname
Returns the [`Ident`] of the declaration, if available. Certain declarations (currently `impl` blocks) do not have a name, as they refer to other (po
src/types_edition.rs:120
Methodnew
Create a new list.
src/punctuated.rs:17
Methodnew
Create a new error message with the given text. The span will be located at the macro's call site.
src/error.rs:69
Methodnew
Create from proc_macro2 Group.
src/types_edition.rs:865
Methodnew_at_span
Create a new error message with the given text and span.
src/error.rs:80
Methodnew_at_tokens
Create a new error message with the given text. Venial will do its best to locate the message at a span encompassing all the given tokens.
src/error.rs:94
Methodparse
Helper method to create a WhereClauseItem from a quote. # Panics Panics if given a token stream that isn't a valid where-clause item.
src/types_edition.rs:763
Functionparse_all_kw_fn
()
src/tests.rs:819
Functionparse_async_fn
()
src/tests.rs:778
Functionparse_attr_fn
()
src/tests.rs:737
Functionparse_bounded_type_param_no_comma
()
src/tests.rs:654
Functionparse_complex_attributes
()
src/tests.rs:342
Functionparse_complex_enum_variant
()
src/tests.rs:575
Functionparse_const_fn
()
src/tests.rs:768
Functionparse_const_generics
()
src/tests.rs:619
Functionparse_constant_complex
()
src/tests.rs:1258
Functionparse_constant_expressionless
()
src/tests.rs:1270
Functionparse_constant_simple
()
src/tests.rs:1248
Functionparse_default_fn
()
src/tests.rs:758
Functionparse_empty_enum
()
src/tests.rs:120
Functionparse_empty_fn
()
src/tests.rs:694
Functionparse_empty_struct
()
src/tests.rs:111
Functionparse_empty_tuple
()
src/tests.rs:102
Functionparse_enum
()
src/tests.rs:77
Functionparse_enum_attributes
()
src/tests.rs:293
Functionparse_enum_empty_generic_params
()
src/tests.rs:519
Functionparse_enum_empty_where_clause
()
src/tests.rs:456
Functionparse_enum_generic_params
()
src/tests.rs:505
Functionparse_enum_vis
()
src/tests.rs:204
Functionparse_enum_where_clause
()
src/tests.rs:403
Functionparse_enum_with_macro
()
src/tests.rs:604
Functionparse_extern_abi_fn
()
src/tests.rs:798
Functionparse_extern_block
()
src/tests.rs:1455
Functionparse_extern_crate
()
src/tests.rs:1479
Functionparse_extern_fn
()
src/tests.rs:808
Functionparse_fn
()
src/tests.rs:684
Functionparse_fn_body
()
src/tests.rs:839
Functionparse_fn_c_variadics
()
src/tests.rs:915
Functionparse_fn_lifetimes
()
src/tests.rs:871
Functionparse_fn_mut_param
()
src/tests.rs:861
Functionparse_fn_mut_receiver_lifetime
()
src/tests.rs:891
Functionparse_fn_no_pattern
()
src/tests.rs:927
Functionparse_fn_pattern_arg
()
src/tests.rs:903
Functionparse_fn_prototype
()
src/tests.rs:851
Functionparse_fn_receiver_lifetime
()
src/tests.rs:881
Functionparse_fn_self_param
()
src/tests.rs:937
Functionparse_fn_traits
()
src/tests.rs:628
Functionparse_generic_args
()
src/tests.rs:539
Functionparse_generic_args_turbofish
()
src/tests.rs:548
Functionparse_generic_fn
()
src/tests.rs:704
Functionparse_impl_inherent
()
src/tests.rs:1130
Functionparse_impl_inherent_generic
()
src/tests.rs:1159
Functionparse_impl_trait
()
src/tests.rs:1169
Functionparse_impl_trait_generic
()
src/tests.rs:1203
Functionparse_inline_generic_args
()
src/tests.rs:557
Functionparse_macro_in_where_clause
()
src/tests.rs:667
Functionparse_mod
()
src/tests.rs:1349
Functionparse_multiple_brackets
()
src/tests.rs:641
Functionparse_normal_struct
()
src/tests.rs:65
Functionparse_normal_struct_attributes
()
src/tests.rs:280
Functionparse_normal_struct_empty_where_clause
()
src/tests.rs:441
Functionparse_normal_struct_generic_params
()
src/tests.rs:493
Functionparse_normal_struct_vis
()
src/tests.rs:178
Functionparse_normal_struct_where_clause
()
src/tests.rs:387
Functionparse_param_attr_fn
()
src/tests.rs:829
Functionparse_struct_fields_attributes
()
src/tests.rs:307
Functionparse_struct_fields_vis
()
src/tests.rs:233
Functionparse_struct_with_macro
()
src/tests.rs:971
Functionparse_trait_decorated
()
src/tests.rs:1438
Functionparse_trait_simple
()
src/tests.rs:1410
Functionparse_tuple_fields_attributes
()
src/tests.rs:325
Functionparse_tuple_fields_vis
()
src/tests.rs:247
Functionparse_tuple_struct
()
src/tests.rs:56
Functionparse_tuple_struct_attributes
()
src/tests.rs:270
Functionparse_tuple_struct_empty_where_clause
()
src/tests.rs:431
Functionparse_tuple_struct_generic_params
()
src/tests.rs:484
Functionparse_tuple_struct_vis
()
src/tests.rs:161
Functionparse_tuple_struct_where_clause
()
src/tests.rs:375
Functionparse_type_complex
()
src/tests.rs:1233
Functionparse_type_simple
()
src/tests.rs:1223
Functionparse_union
()
src/tests.rs:90
← previousnext →101–200 of 215, ranked by callers