MCPcopy Index your code

hub / github.com/JelteF/derive_more / functions

Functions1,002 in github.com/JelteF/derive_more

↓ 2 callersMethodvalidate_type
Validates the provided [`syn::Type`] against these [`syn::Fields`].
impl/src/utils.rs:2424
↓ 1 callersFunctionadd_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 callersFunctionadd_extra_generic_type_param
( generics: &Generics, generic_param: TokenStream, )
impl/src/utils.rs:200
↓ 1 callersFunctionadd_extra_type_param_bound_op_output
( generics: &'a Generics, trait_ident: &'a Ident, )
impl/src/utils.rs:160
↓ 1 callersFunctionalt
Tries to execute the first successful parser.
impl/src/parsing.rs:181
↓ 1 callersMethodarm_expr
( &self, method_path: &syn::Path, skipped_indices: &SkippedFields, )
impl/src/ops/mod.rs:309
↓ 1 callersMethodarm_expr
( &self, method_path: &syn::Path, skipped_indices: &SkippedFields, )
impl/src/ops/mul.rs:270
↓ 1 callersFunctioncheck_legacy_syntax
[`Error`]ors for legacy syntax: `#[into(types(i32, "&str"))]`. [`Error`]: syn::Error
impl/src/into.rs:476
↓ 1 callersMethodconstructor
( &self, name: &syn::Path, values: impl IntoIterator<Item = syn::Ident>, )
impl/src/from_str.rs:381
↓ 1 callersFunctiondetect_error_generic_member_access
()
impl/build.rs:3
↓ 1 callersFunctiondetect_nightly
()
build.rs:2
↓ 1 callersFunctiondetect_nightly
()
impl/build.rs:11
↓ 1 callersMethodenabled_fields
(&self)
impl/src/utils.rs:692
↓ 1 callersMethodenabled_fields_idents
(&self)
impl/src/utils.rs:720
↓ 1 callersMethodenabled_fields_indexes
(&self)
impl/src/utils.rs:729
↓ 1 callersMethodenabled_variant_states
(&self)
impl/src/utils.rs:683
↓ 1 callersMethodenabled_variants
(&self)
impl/src/utils.rs:674
↓ 1 callersFunctionenum_output_type_and_content
( input: &DeriveInput, data_enum: &DataEnum, method_ident: &Ident, )
impl/src/not_like.rs:88
↓ 1 callersFunctionexpand_enum
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref.rs:17
↓ 1 callersFunctionexpand_enum
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref_mut.rs:17
↓ 1 callersFunctionexpand_enum
Expands a [`fmt`]-like derive macro for the provided enum.
impl/src/fmt/display.rs:234
↓ 1 callersFunctionexpand_enum
Expands a [`fmt::Debug`] derive macro for the provided enum. [`fmt::Debug`]: std::fmt::Debug
impl/src/fmt/debug.rs:118
↓ 1 callersFunctionexpand_scalar
Expands an [`ops::MulAssign`]-like derive macro in a scalar manner.
impl/src/ops/mul_assign.rs:93
↓ 1 callersFunctionexpand_scalar
Expands an [`ops::Mul`]-like derive macro in a scalar manner.
impl/src/ops/mul.rs:123
↓ 1 callersFunctionexpand_struct
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref.rs:90
↓ 1 callersFunctionexpand_struct
(input: &DeriveInput, trait_name: &'static str)
impl/src/deref_mut.rs:75
↓ 1 callersFunctionexpand_struct
Expands a [`fmt::Display`]-like derive macro for the provided struct.
impl/src/fmt/display.rs:199
↓ 1 callersFunctionexpand_struct
Expands a [`fmt::Debug`] derive macro for the provided struct. [`fmt::Debug`]: std::fmt::Debug
impl/src/fmt/debug.rs:80
↓ 1 callersFunctionexpand_structural
Expands an [`ops::MulAssign`]-like derive macro in a structural manner.
impl/src/ops/mul_assign.rs:57
↓ 1 callersFunctionexpand_structural
Expands an [`ops::Mul`]-like derive macro in a structural manner.
impl/src/ops/mul.rs:53
↓ 1 callersFunctionexpand_union
Expands a [`fmt::Display`]-like derive macro for the provided union.
impl/src/fmt/display.rs:331
↓ 1 callersFunctionfield_idents
(fields: &'a [&'a Field])
impl/src/utils.rs:139
↓ 1 callersMethodfinish
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 callersMethodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/ops.rs:22
↓ 1 callersFunctionformat_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 callersFunctionget_field_info
(fields: &Fields)
impl/src/unwrap.rs:132
↓ 1 callersFunctionget_field_info
(fields: &Fields)
impl/src/try_unwrap.rs:137
↓ 1 callersFunctionget_field_types
(fields: &'a [&'a Field])
impl/src/utils.rs:156
↓ 1 callersFunctionget_field_types_iter
( fields: &'a [&'a Field], )
impl/src/utils.rs:150
↓ 1 callersFunctionget_if_type_parameter_used_in_type
( type_parameters: &HashSet<syn::Ident>, ty: &syn::Type, )
impl/src/utils.rs:1266
↓ 1 callersMethodget_inner
Returns the inner [`syn::Type`] if this one represents a wrapper.
impl/src/error.rs:526
↓ 1 callersFunctioninfer_source_field
( fields: &[&syn::Field], parsed_fields: &ParsedFields, )
impl/src/error.rs:372
↓ 1 callersMethodinitializer
(&self, initializers: &[T])
impl/src/utils.rs:787
↓ 1 callersFunctionis_type_parameter_used_in_type
( type_parameters: &HashSet<syn::Ident>, ty: &syn::Type, )
impl/src/utils.rs:1276
↓ 1 callersFunctionlegacy_error
Constructs a [`syn::Error`] for legacy syntax: `#[from(types(i32, "&str"))]`.
impl/src/from.rs:344
↓ 1 callersMethodmutability
(self)
impl/src/utils.rs:97
↓ 1 callersFunctionnormalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/add_assign.rs:84
↓ 1 callersFunctionnormalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/mul_assign.rs:223
↓ 1 callersFunctionnormalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/add.rs:119
↓ 1 callersFunctionnormalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/ops/mul.rs:305
↓ 1 callersFunctionnormalize_trait_name
Matches the provided derive macro `name` to appropriate actual trait name.
impl/src/fmt/display.rs:557
↓ 1 callersFunctionone_of
Checks whether first [`char`] of input is present in `chars`. [`char`]: fn@char
impl/src/fmt/parsing.rs:690
↓ 1 callersFunctionparse_punctuated_nested_meta
( info: &mut MetaInfo, meta: &Punctuated<polyfill::Meta, Token![,]>, allowed_attr_params: &[&str],
impl/src/utils.rs:886
↓ 1 callersMethodpattern_ref
(self)
impl/src/utils.rs:104
↓ 1 callersFunctionpunct_with_spacing
Tries to parse a [`punct`] with [`Spacing`].
impl/src/parsing.rs:103
↓ 1 callersMethodreference
(self)
impl/src/utils.rs:89
↓ 1 callersFunctionrender_enum
( type_params: &HashSet<syn::Ident>, state: &State, )
impl/src/error.rs:119
↓ 1 callersMethodrender_provide_as_enum_variant_match_arm
(&self)
impl/src/error.rs:250
↓ 1 callersMethodrender_provide_as_struct
(&self)
impl/src/error.rs:222
↓ 1 callersMethodrender_source_as_enum_variant_match_arm
(&self)
impl/src/error.rs:212
↓ 1 callersMethodrender_source_as_struct
(&self)
impl/src/error.rs:203
↓ 1 callersFunctionrender_struct
( type_params: &HashSet<syn::Ident>, state: &State, )
impl/src/error.rs:105
↓ 1 callersMethodself_ty
(&self)
impl/src/from_str.rs:431
↓ 1 callersFunctionstruct_content
( input_type: &Ident, fields: &[&Field], method_ident: &Ident, )
impl/src/not_like.rs:70
↓ 1 callersFunctiontake_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 callersFunctiontake_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 callersFunctiontake_while0
Parses while `parser` is successful. Never fails.
impl/src/fmt/parsing.rs:609
↓ 1 callersFunctiontrait_name_to_default_placeholder_literal
Matches the provided [`fmt`] trait `name` to its default formatting placeholder.
impl/src/fmt/display.rs:572
↓ 1 callersFunctiontrait_name_to_method_name
Matches the provided [`ops::AddAssign`]-like trait `name` to its method name.
impl/src/ops/add_assign.rs:101
↓ 1 callersFunctiontrait_name_to_method_name
Matches the provided [`ops::MulAssign`]-like trait `name` to its method name.
impl/src/ops/mul_assign.rs:240
↓ 1 callersFunctiontrait_name_to_method_name
Matches the provided [`ops::Add`]-like trait `name` to its method name.
impl/src/ops/add.rs:136
↓ 1 callersFunctiontrait_name_to_method_name
Matches the provided [`ops::Mul`]-like trait `name` to its method name.
impl/src/ops/mul.rs:322
↓ 1 callersFunctiontry_seq
Tries to apply parsers in sequence. Returns [`None`] in case one of them returned [`None`].
impl/src/fmt/parsing.rs:550
↓ 1 callersFunctiontuple_body
(return_type: &Ident, fields: &[&Field])
impl/src/constructor.rs:49
↓ 1 callersFunctiontuple_content
( input_type: &T, fields: &[&Field], method_ident: &Ident, )
impl/src/not_like.rs:53
↓ 1 callersMethodty
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 callersFunctiontype_
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 callersMethodvisit_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
Methodadd
(self, rhs: MyInts)
tests/sum.rs:13
Functionaliased_field_named_generic_struct
()
tests/display.rs:2033
Functionaliased_field_named_generic_struct
()
tests/debug.rs:1570
Functionaliased_field_unnamed_generic_struct
()
tests/display.rs:2079
Functionaliased_field_unnamed_generic_struct
()
tests/debug.rs:1685
Functionaliased_named_generic_struct
()
tests/display.rs:2022
Functionaliased_named_generic_struct
()
tests/debug.rs:1552
Functionaliased_unnamed_generic_struct
()
tests/display.rs:2071
Functionaliased_unnamed_generic_struct
()
tests/debug.rs:1671
Functionalign
Parses an `align` as defined in the [grammar spec][0]. # Grammar [`align`]` := '<' | '^' | '>'` # Example ```text < ^ > ``` [0]: std::fmt#syntax
impl/src/fmt/parsing.rs:366
Functionall_but_single_empty_variant
()
tests/partial_eq.rs:872
Functionall_but_single_empty_variant
()
tests/eq.rs:516
Functionall_fields
()
tests/partial_eq.rs:175
Functionall_fields
()
tests/eq.rs:99
Functionall_variants
()
tests/partial_eq.rs:833
Functionall_variants
()
tests/eq.rs:490
Functionany_char
Parses any [`char`]. [`char`]: fn@char
impl/src/fmt/parsing.rs:697
Functionargument
Parses an `argument` as defined in the [grammar spec][0]. # Grammar [`argument`]` := `[`integer`]` | `[`identifier`] # Example ```text 0 ident Мин
impl/src/fmt/parsing.rs:283
Methodas_dyn_error
(&self)
tests/error/derives_for_structs_with_source.rs:18
Functionassert
( input: &'a str, parsed: impl AsRef<[&'a str]>, )
impl/src/parsing.rs:230
← previousnext →101–200 of 1,002, ranked by callers