Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/JelteF/derive_more
/ functions
Functions
1,002 in github.com/JelteF/derive_more
⨍
Functions
1,002
◇
Types & classes
818
↓ 2 callers
Method
validate_type
Validates the provided [`syn::Type`] against these [`syn::Fields`].
impl/src/utils.rs:2424
↓ 1 callers
Function
add_bound_if_type_parameter_used_in_type
( bounds: &mut HashSet<syn::Type>, type_params: &HashSet<syn::Ident>, ty: &syn::Type, unpack:
impl/src/error.rs:498
↓ 1 callers
Function
add_extra_generic_type_param
( generics: &Generics, generic_param: TokenStream, )
impl/src/utils.rs:200
↓ 1 callers
Function
add_extra_type_param_bound_op_output
( generics: &'a Generics, trait_ident: &'a Ident, )
impl/src/utils.rs:160
↓ 1 callers
Function
alt
Tries to execute the first successful parser.
impl/src/parsing.rs:181
↓ 1 callers
Method
arm_expr
( &self, method_path: &syn::Path, skipped_indices: &SkippedFields, )
impl/src/ops/mod.rs:309
↓ 1 callers
Method
arm_expr
( &self, method_path: &syn::Path, skipped_indices: &SkippedFields, )
impl/src/ops/mul.rs:270
↓ 1 callers
Function
check_legacy_syntax
[`Error`]ors for legacy syntax: `#[into(types(i32, "&str"))]`. [`Error`]: syn::Error
impl/src/into.rs:476
↓ 1 callers
Method
constructor
( &self, name: &syn::Path, values: impl IntoIterator<Item = syn::Ident>, )
impl/src/from_str.rs:381
↓ 1 callers
Function
detect_error_generic_member_access
()
impl/build.rs:3
↓ 1 callers
Function
detect_nightly
()
build.rs:2
↓ 1 callers
Function
detect_nightly
()
impl/build.rs:11
↓ 1 callers
Method
enabled_fields
(&self)
impl/src/utils.rs:692
↓ 1 callers
Method
enabled_fields_idents
(&self)
impl/src/utils.rs:720
↓ 1 callers
Method
enabled_fields_indexes
(&self)
impl/src/utils.rs:729
↓ 1 callers
Method
enabled_variant_states
(&self)
impl/src/utils.rs:683
↓ 1 callers
Method
enabled_variants
(&self)
impl/src/utils.rs:674
↓ 1 callers
Function
enum_output_type_and_content
( input: &DeriveInput, data_enum: &DataEnum, method_ident: &Ident, )
impl/src/not_like.rs:88
↓ 1 callers
Function
expand_enum
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref.rs:17
↓ 1 callers
Function
expand_enum
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref_mut.rs:17
↓ 1 callers
Function
expand_enum
Expands a [`fmt`]-like derive macro for the provided enum.
impl/src/fmt/display.rs:234
↓ 1 callers
Function
expand_enum
Expands a [`fmt::Debug`] derive macro for the provided enum. [`fmt::Debug`]: std::fmt::Debug
impl/src/fmt/debug.rs:118
↓ 1 callers
Function
expand_scalar
Expands an [`ops::MulAssign`]-like derive macro in a scalar manner.
impl/src/ops/mul_assign.rs:93
↓ 1 callers
Function
expand_scalar
Expands an [`ops::Mul`]-like derive macro in a scalar manner.
impl/src/ops/mul.rs:123
↓ 1 callers
Function
expand_struct
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref.rs:90
↓ 1 callers
Function
expand_struct
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref_mut.rs:75
↓ 1 callers
Function
expand_struct
Expands a [`fmt::Display`]-like derive macro for the provided struct.
impl/src/fmt/display.rs:199
↓ 1 callers
Function
expand_struct
Expands a [`fmt::Debug`] derive macro for the provided struct. [`fmt::Debug`]: std::fmt::Debug
impl/src/fmt/debug.rs:80
↓ 1 callers
Function
expand_structural
Expands an [`ops::MulAssign`]-like derive macro in a structural manner.
impl/src/ops/mul_assign.rs:57
↓ 1 callers
Function
expand_structural
Expands an [`ops::Mul`]-like derive macro in a structural manner.
impl/src/ops/mul.rs:53
↓ 1 callers
Function
expand_union
Expands a [`fmt::Display`]-like derive macro for the provided union.
impl/src/fmt/display.rs:331
↓ 1 callers
Function
field_idents
(fields: &'a [&'a Field])
impl/src/utils.rs:139
↓ 1 callers
Method
finish
Finishes output and returns any error encountered. # Example ``` use core::fmt; use derive_more::__private::debug_tuple; struct Foo(i32, String);
src/fmt.rs:104
↓ 1 callers
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/ops.rs:22
↓ 1 callers
Function
format_string
Parses a `format_string` as defined in the [grammar spec][0]. # Grammar [`format_string`]` := `[`text`]` [`[`maybe_format text`]`] *` # Example ``
impl/src/fmt/parsing.rs:191
↓ 1 callers
Function
get_field_info
(fields: &Fields)
impl/src/unwrap.rs:132
↓ 1 callers
Function
get_field_info
(fields: &Fields)
impl/src/try_unwrap.rs:137
↓ 1 callers
Function
get_field_types
(fields: &'a [&'a Field])
impl/src/utils.rs:156
↓ 1 callers
Function
get_field_types_iter
( fields: &'a [&'a Field], )
impl/src/utils.rs:150
↓ 1 callers
Function
get_if_type_parameter_used_in_type
( type_parameters: &HashSet<syn::Ident>, ty: &syn::Type, )
impl/src/utils.rs:1266
↓ 1 callers
Method
get_inner
Returns the inner [`syn::Type`] if this one represents a wrapper.
impl/src/error.rs:526
↓ 1 callers
Function
infer_source_field
( fields: &[&syn::Field], parsed_fields: &ParsedFields, )
impl/src/error.rs:372
↓ 1 callers
Method
initializer
(&self, initializers: &[T])
impl/src/utils.rs:787
↓ 1 callers
Function
is_type_parameter_used_in_type
( type_parameters: &HashSet<syn::Ident>, ty: &syn::Type, )
impl/src/utils.rs:1276
↓ 1 callers
Function
legacy_error
Constructs a [`syn::Error`] for legacy syntax: `#[from(types(i32, "&str"))]`.
impl/src/from.rs:344
↓ 1 callers
Method
mutability
(self)
impl/src/utils.rs:97
↓ 1 callers
Function
normalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/add_assign.rs:84
↓ 1 callers
Function
normalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/mul_assign.rs:223
↓ 1 callers
Function
normalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/add.rs:119
↓ 1 callers
Function
normalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/mul.rs:305
↓ 1 callers
Function
normalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/fmt/display.rs:557
↓ 1 callers
Function
one_of
Checks whether first [`char`] of input is present in `chars`. [`char`]: fn@char
impl/src/fmt/parsing.rs:690
↓ 1 callers
Function
parse_punctuated_nested_meta
( info: &mut MetaInfo, meta: &Punctuated<polyfill::Meta, Token![,]>, allowed_attr_params: &[&str],
impl/src/utils.rs:886
↓ 1 callers
Method
pattern_ref
(self)
impl/src/utils.rs:104
↓ 1 callers
Function
punct_with_spacing
Tries to parse a [`punct`] with [`Spacing`].
impl/src/parsing.rs:103
↓ 1 callers
Method
reference
(self)
impl/src/utils.rs:89
↓ 1 callers
Function
render_enum
( type_params: &HashSet<syn::Ident>, state: &State, )
impl/src/error.rs:119
↓ 1 callers
Method
render_provide_as_enum_variant_match_arm
(&self)
impl/src/error.rs:250
↓ 1 callers
Method
render_provide_as_struct
(&self)
impl/src/error.rs:222
↓ 1 callers
Method
render_source_as_enum_variant_match_arm
(&self)
impl/src/error.rs:212
↓ 1 callers
Method
render_source_as_struct
(&self)
impl/src/error.rs:203
↓ 1 callers
Function
render_struct
( type_params: &HashSet<syn::Ident>, state: &State, )
impl/src/error.rs:105
↓ 1 callers
Method
self_ty
(&self)
impl/src/from_str.rs:431
↓ 1 callers
Function
struct_content
( input_type: &Ident, fields: &[&Field], method_ident: &Ident, )
impl/src/not_like.rs:70
↓ 1 callers
Function
take_until1
Parses with `basic` while `until` fails. Returns [`None`] in case `until` succeeded initially or `basic` never succeeded. Doesn't consume tokens parse
impl/src/parsing.rs:190
↓ 1 callers
Function
take_until1
Parses with `basic` while `until` returns [`None`]. Returns [`None`] in case `until` succeeded initially or `basic` never succeeded. Doesn't consume [
impl/src/fmt/parsing.rs:640
↓ 1 callers
Function
take_while0
Parses while `parser` is successful. Never fails.
impl/src/fmt/parsing.rs:609
↓ 1 callers
Function
trait_name_to_default_placeholder_literal
Matches the provided [`fmt`] trait `name` to its default formatting placeholder.
impl/src/fmt/display.rs:572
↓ 1 callers
Function
trait_name_to_method_name
Matches the provided [`ops::AddAssign`]-like trait `name` to its method name.
impl/src/ops/add_assign.rs:101
↓ 1 callers
Function
trait_name_to_method_name
Matches the provided [`ops::MulAssign`]-like trait `name` to its method name.
impl/src/ops/mul_assign.rs:240
↓ 1 callers
Function
trait_name_to_method_name
Matches the provided [`ops::Add`]-like trait `name` to its method name.
impl/src/ops/add.rs:136
↓ 1 callers
Function
trait_name_to_method_name
Matches the provided [`ops::Mul`]-like trait `name` to its method name.
impl/src/ops/mul.rs:322
↓ 1 callers
Function
try_seq
Tries to apply parsers in sequence. Returns [`None`] in case one of them returned [`None`].
impl/src/fmt/parsing.rs:550
↓ 1 callers
Function
tuple_body
(return_type: &Ident, fields: &[&Field])
impl/src/constructor.rs:49
↓ 1 callers
Function
tuple_content
( input_type: &T, fields: &[&Field], method_ident: &Ident, )
impl/src/not_like.rs:53
↓ 1 callers
Method
ty
Returns [`syn::Ident`] of the primitive integer type behind this [`ReprInt`] attribute. If there is no explicitly specified primitive integer type,
impl/src/utils.rs:1817
↓ 1 callers
Function
type_
Parses a `type` as defined in the [grammar spec][0]. # Grammar [`type`]` := '' | '?' | 'x?' | 'X?' | identifier` # Example All possible [`Type`]s.
impl/src/fmt/parsing.rs:443
↓ 1 callers
Method
visit_derive_input_mut
(&mut self, i: &mut syn::DeriveInput)
impl/src/utils.rs:2746
Method
__derive_more_as_dyn_error
(&self)
src/as_dyn_error.rs:26
Method
__extract_ref
(&self, frm: Self::Frm)
src/as.rs:37
Method
add
(self, rhs: MyInts)
tests/sum.rs:13
Function
aliased_field_named_generic_struct
()
tests/display.rs:2033
Function
aliased_field_named_generic_struct
()
tests/debug.rs:1570
Function
aliased_field_unnamed_generic_struct
()
tests/display.rs:2079
Function
aliased_field_unnamed_generic_struct
()
tests/debug.rs:1685
Function
aliased_named_generic_struct
()
tests/display.rs:2022
Function
aliased_named_generic_struct
()
tests/debug.rs:1552
Function
aliased_unnamed_generic_struct
()
tests/display.rs:2071
Function
aliased_unnamed_generic_struct
()
tests/debug.rs:1671
Function
align
Parses an `align` as defined in the [grammar spec][0]. # Grammar [`align`]` := '<' | '^' | '>'` # Example ```text < ^ > ``` [0]: std::fmt#syntax
impl/src/fmt/parsing.rs:366
Function
all_but_single_empty_variant
()
tests/partial_eq.rs:872
Function
all_but_single_empty_variant
()
tests/eq.rs:516
Function
all_fields
()
tests/partial_eq.rs:175
Function
all_fields
()
tests/eq.rs:99
Function
all_variants
()
tests/partial_eq.rs:833
Function
all_variants
()
tests/eq.rs:490
Function
any_char
Parses any [`char`]. [`char`]: fn@char
impl/src/fmt/parsing.rs:697
Function
argument
Parses an `argument` as defined in the [grammar spec][0]. # Grammar [`argument`]` := `[`integer`]` | `[`identifier`] # Example ```text 0 ident Мин
impl/src/fmt/parsing.rs:283
Method
as_dyn_error
(&self)
tests/error/derives_for_structs_with_source.rs:18
Function
assert
( input: &'a str, parsed: impl AsRef<[&'a str]>, )
impl/src/parsing.rs:230
← previous
next →
101–200 of 1,002, ranked by callers