Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PoignardAzur/venial
/ functions
Functions
215 in github.com/PoignardAzur/venial
⨍
Functions
215
◇
Types & classes
49
Method
field_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
Method
field_types
Returns a collection of references to the struct's field types.
src/types_edition.rs:333
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/types.rs:880
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/punctuated.rs:88
Method
fmt
(&self, formatter: &mut std::fmt::Formatter)
src/error.rs:165
Method
from_predicate
Create where-clause with a single predicate.
src/types_edition.rs:746
Method
generic_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
Method
get_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
Method
get_single_type
Returns Some if the variant is a wrapper around a single type. Returns None otherwise.
src/types_edition.rs:533
Method
get_value_tokens
Returns `foo + bar` for `#[hello = foo + bar]` and `#[hello(foo + bar)]`. Returns an empty slice for `#[hello]`.
src/types_edition.rs:508
Function
interpret_ty_expr_from_declarative_macro
()
src/tests.rs:1320
Function
interpret_ty_expr_generic_as_path
()
src/tests.rs:1296
Function
interpret_ty_expr_invalid_as_path
()
src/tests.rs:1309
Function
interpret_ty_expr_simple_as_path
()
src/tests.rs:1284
Method
is_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
Method
is_const
Returns true if the generic param is a const param.
src/types_edition.rs:681
Method
is_static
True if this is a `static`, false if `const`.
src/types.rs:333
Method
is_ty
Returns true if the generic param is a type param.
src/types_edition.rs:676
Method
lifetime
Create new lifetime param from name. ``` # use venial::GenericParam; GenericParam::lifetime("a") # ; ```
src/types_edition.rs:582
Method
name
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
Method
new
Create a new list.
src/punctuated.rs:17
Method
new
Create a new error message with the given text. The span will be located at the macro's call site.
src/error.rs:69
Method
new
Create from proc_macro2 Group.
src/types_edition.rs:865
Method
new_at_span
Create a new error message with the given text and span.
src/error.rs:80
Method
new_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
Method
parse
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
Function
parse_all_kw_fn
()
src/tests.rs:819
Function
parse_async_fn
()
src/tests.rs:778
Function
parse_attr_fn
()
src/tests.rs:737
Function
parse_bounded_type_param_no_comma
()
src/tests.rs:654
Function
parse_complex_attributes
()
src/tests.rs:342
Function
parse_complex_enum_variant
()
src/tests.rs:575
Function
parse_const_fn
()
src/tests.rs:768
Function
parse_const_generics
()
src/tests.rs:619
Function
parse_constant_complex
()
src/tests.rs:1258
Function
parse_constant_expressionless
()
src/tests.rs:1270
Function
parse_constant_simple
()
src/tests.rs:1248
Function
parse_default_fn
()
src/tests.rs:758
Function
parse_empty_enum
()
src/tests.rs:120
Function
parse_empty_fn
()
src/tests.rs:694
Function
parse_empty_struct
()
src/tests.rs:111
Function
parse_empty_tuple
()
src/tests.rs:102
Function
parse_enum
()
src/tests.rs:77
Function
parse_enum_attributes
()
src/tests.rs:293
Function
parse_enum_empty_generic_params
()
src/tests.rs:519
Function
parse_enum_empty_where_clause
()
src/tests.rs:456
Function
parse_enum_generic_params
()
src/tests.rs:505
Function
parse_enum_vis
()
src/tests.rs:204
Function
parse_enum_where_clause
()
src/tests.rs:403
Function
parse_enum_with_macro
()
src/tests.rs:604
Function
parse_extern_abi_fn
()
src/tests.rs:798
Function
parse_extern_block
()
src/tests.rs:1455
Function
parse_extern_crate
()
src/tests.rs:1479
Function
parse_extern_fn
()
src/tests.rs:808
Function
parse_fn
()
src/tests.rs:684
Function
parse_fn_body
()
src/tests.rs:839
Function
parse_fn_c_variadics
()
src/tests.rs:915
Function
parse_fn_lifetimes
()
src/tests.rs:871
Function
parse_fn_mut_param
()
src/tests.rs:861
Function
parse_fn_mut_receiver_lifetime
()
src/tests.rs:891
Function
parse_fn_no_pattern
()
src/tests.rs:927
Function
parse_fn_pattern_arg
()
src/tests.rs:903
Function
parse_fn_prototype
()
src/tests.rs:851
Function
parse_fn_receiver_lifetime
()
src/tests.rs:881
Function
parse_fn_self_param
()
src/tests.rs:937
Function
parse_fn_traits
()
src/tests.rs:628
Function
parse_generic_args
()
src/tests.rs:539
Function
parse_generic_args_turbofish
()
src/tests.rs:548
Function
parse_generic_fn
()
src/tests.rs:704
Function
parse_impl_inherent
()
src/tests.rs:1130
Function
parse_impl_inherent_generic
()
src/tests.rs:1159
Function
parse_impl_trait
()
src/tests.rs:1169
Function
parse_impl_trait_generic
()
src/tests.rs:1203
Function
parse_inline_generic_args
()
src/tests.rs:557
Function
parse_macro_in_where_clause
()
src/tests.rs:667
Function
parse_mod
()
src/tests.rs:1349
Function
parse_multiple_brackets
()
src/tests.rs:641
Function
parse_normal_struct
()
src/tests.rs:65
Function
parse_normal_struct_attributes
()
src/tests.rs:280
Function
parse_normal_struct_empty_where_clause
()
src/tests.rs:441
Function
parse_normal_struct_generic_params
()
src/tests.rs:493
Function
parse_normal_struct_vis
()
src/tests.rs:178
Function
parse_normal_struct_where_clause
()
src/tests.rs:387
Function
parse_param_attr_fn
()
src/tests.rs:829
Function
parse_struct_fields_attributes
()
src/tests.rs:307
Function
parse_struct_fields_vis
()
src/tests.rs:233
Function
parse_struct_with_macro
()
src/tests.rs:971
Function
parse_trait_decorated
()
src/tests.rs:1438
Function
parse_trait_simple
()
src/tests.rs:1410
Function
parse_tuple_fields_attributes
()
src/tests.rs:325
Function
parse_tuple_fields_vis
()
src/tests.rs:247
Function
parse_tuple_struct
()
src/tests.rs:56
Function
parse_tuple_struct_attributes
()
src/tests.rs:270
Function
parse_tuple_struct_empty_where_clause
()
src/tests.rs:431
Function
parse_tuple_struct_generic_params
()
src/tests.rs:484
Function
parse_tuple_struct_vis
()
src/tests.rs:161
Function
parse_tuple_struct_where_clause
()
src/tests.rs:375
Function
parse_type_complex
()
src/tests.rs:1233
Function
parse_type_simple
()
src/tests.rs:1223
Function
parse_union
()
src/tests.rs:90
← previous
next →
101–200 of 215, ranked by callers