MCPcopy Create free account

hub / github.com/ahgamut/rust-ape-example / functions

Functions519 in github.com/ahgamut/rust-ape-example

↓ 1 callersMethodshear
(&mut self)
src/bin/trait.rs:25
↓ 1 callersFunctionsome_number
()
src/bin/flow_control_match_binding.rs:24
↓ 1 callersMethodsource
(&self)
src/bin/error_multiple_error_types_wrap_error.rs:33
↓ 1 callersFunctionsqrt
(x: f64)
src/bin/std_result.rs:26
↓ 1 callersFunctionsqrt
(x: f64)
src/bin/std_result_question_mark.rs:22
↓ 1 callersMethodto_centimeters
(&self)
src/bin/trait_derive.rs:13
↓ 1 callersMethodtranslate
This method requires the caller object to be mutable `&mut self` desugars to `self: &mut Self`
src/bin/fn_methods.rs:54
↓ 1 callersFunctionused_function
()
src/bin/attribute_unused.rs:4
Methodadd
add() returns a new `Length` struct containing the sum.
src/bin/generics_phantom_testcase_units.rs:25
Methodadd
(self, _rhs: Bar)
src/bin/trait_ops.rs:21
Functionannotated_pass
(x: &'a i32)
src/bin/scope_lifetime_elision.rs:18
Functionapply_to_3
A function which takes a closure and returns an `i32`.
src/bin/fn_closures_input_parameters.rs:15
Functionarea
`T` must implement `HasArea`. Any type which meets the bound can access `HasArea`'s function `area`.
src/bin/generics_bounds.rs:28
Methodarea
This is a method `&self` is sugar for `self: &Self`, where `Self` is the type of the caller object. In this case `Self` = `Rectangle`
src/bin/fn_methods.rs:35
Functionblue
(_: &T)
src/bin/generics_bounds_testcase_empty.rs:17
Functioncall
(number: &str)
src/bin/std_hash.rs:6
Functionchoose_first
`<'a: 'b, 'b>` reads as lifetime `'a` is at least as long as `'b`. Here, we take in an `&'a i32` and return a `&'b i32` as a result of coercion.
src/bin/scope_lifetime_lifetime_coercion.rs:12
Functioncombine_vecs_explicit_return_type
This function combines two `Vec<i32>` and returns an iterator over it. Look how complicated its return type is!
src/bin/trait_impl_trait.rs:38
Functioncomp_sci_student_greeting
(student: &dyn CompSciStudent)
src/bin/trait_supertraits.rs:24
Methodcontains
True if the numbers stored are equal.
src/bin/generics_assoc_items_the_problem.rs:16
Functioncookable_v1
To make a dish, we need both the recipe and the ingredients. We can represent the logic with a chain of `match`es:
src/bin/error_option_unwrap_and_then.rs:27
Methoddefault
()
src/bin/scope_lifetime_trait.rs:12
Functiondifference
`C` contains `A` and `B`. In light of that, having to express `A` and `B` again is a nuisance.
src/bin/generics_assoc_items_the_problem.rs:29
Functiondifference
(container: &C)
src/bin/generics_assoc_items_types.rs:36
Functiondouble_first
(vec: Vec<&str>)
src/bin/error_multiple_error_types_option_result.rs:6
Functiondouble_first
(vec: Vec<&str>)
src/bin/error_multiple_error_types.rs:4
Methoddrop
(&mut self)
src/bin/trait_drop.rs:10
Methoddrop
(&mut self)
src/bin/scope_raii.rs:36
Functionelided_pass
Similarly, `elided_pass` and `annotated_pass` have identical signatures because the lifetime is added implicitly to `elided_pass`:
src/bin/scope_lifetime_elision.rs:16
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/error_multiple_error_types_reenter_question_mark.rs:14
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/error_multiple_error_types_wrap_error.rs:20
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/error_multiple_error_types_define_error_type.rs:20
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/conversion_string.rs:11
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/hello_print_print_display.rs:13
Methodfmt
`f` is a buffer, and this method must write the formatted string into it
src/bin/hello_print_fmt.rs:16
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/hello_print_print_display_testcase_list.rs:10
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bin/error_multiple_error_types_boxing_errors.rs:14
Methodfrom
(err: ParseIntError)
src/bin/error_multiple_error_types_wrap_error.rs:48
Methodfrom
(item: i32)
src/bin/conversion_from_into.rs:12
Functionfunction
Increment via closures and functions.
src/bin/fn_closures.rs:6
Functionfunction
Define a wrapper function satisfying the `Fn` bound
src/bin/fn_closures_input_functions.rs:11
Functionis_big
(n: i32)
src/bin/custom_types_constants.rs:8
Functionmain
()
src/bin/flow_control_match_destructuring_destructure_tuple.rs:22
Functionmain
()
src/bin/mod_visibility.rs:125
Functionmain
()
src/bin/scope_lifetime_explicit.rs:38
Functionmain
()
src/bin/trait_drop.rs:45
Functionmain
()
src/bin/generics_phantom_testcase_units.rs:53
Functionmain
()
src/bin/trait_clone.rs:47
Functionmain
()
src/bin/custom_types_enum_c_like.rs:30
Functionmain
()
src/bin/fn_closures_closure_examples_iter_find.rs:43
Functionmain
()
src/bin/trait_ops.rs:46
Functionmain
()
src/bin/mod_struct_visibility.rs:48
Functionmain
()
src/bin/trait_supertraits.rs:36
Functionmain
()
src/bin/generics_where.rs:27
Functionmain
()
src/bin/error_result_result_map.rs:64
Functionmain
()
src/bin/scope_borrow_alias.rs:54
Functionmain
()
src/bin/std_hash_alt_key_types.rs:60
Functionmain
()
src/bin/mod_super.rs:54
Functionmain
()
src/bin/fn_closures.rs:31
Functionmain
()
src/bin/error_multiple_error_types_reenter_question_mark.rs:46
Functionmain
()
src/bin/std_misc_threads.rs:25
Functionmain
()
src/bin/error_multiple_error_types_wrap_error.rs:84
Functionmain
()
src/bin/error_multiple_error_types_define_error_type.rs:54
Functionmain
()
src/bin/fn.rs:42
Functionmain
()
src/bin/conversion_from_into.rs:29
Functionmain
()
src/bin/error_result_enter_question_mark.rs:25
Functionmain
()
src/bin/expression.rs:41
Functionmain
()
src/bin/std_vec.rs:55
Functionmain
()
src/bin/macros_variadics.rs:28
Functionmain
()
src/bin/conversion_string.rs:29
Functionmain
()
src/bin/hello_print_print_debug.rs:45
Functionmain
()
src/bin/variable_bindings_scope.rs:42
Functionmain
()
src/bin/macros_dsl.rs:23
Functionmain
()
src/bin/flow_control_match_guard.rs:34
Functionmain
()
src/bin/attribute_unused.rs:17
Functionmain
()
src/bin/meta_playground.rs:8
Functionmain
()
src/bin/error_option_unwrap_and_then.rs:57
Functionmain
()
src/bin/scope_lifetime_static_lifetime.rs:20
Functionmain
()
src/bin/hello_print_print_display.rs:59
Functionmain
()
src/bin/hello_print_fmt.rs:53
Functionmain
()
src/bin/fn_closures_output_parameters.rs:32
Functionmain
()
src/bin/std_misc_arg_matching.rs:70
Functionmain
()
src/bin/flow_control_match_destructuring_destructure_structures.rs:27
Functionmain
()
src/bin/scope_move.rs:47
Functionmain
()
src/bin/flow_control_match_destructuring_destructure_pointers.rs:55
Functionmain
()
src/bin/hello_comment.rs:35
Functionmain
()
src/bin/attribute_cfg_custom.rs:13
Functionmain
()
src/bin/generics.rs:32
Functionmain
()
src/bin/fn_closures_input_functions.rs:23
Functionmain
()
src/bin/std_result.rs:63
Functionmain
()
src/bin/std_arc.rs:27
Functionmain
()
src/bin/macros_overload.rs:29
Functionmain
()
src/bin/variable_bindings.rs:25
Functionmain
()
src/bin/flow_control_for.rs:75
Functionmain
()
src/bin/hello_print_print_display_testcase_list.rs:36
Functionmain
()
src/bin/fn_closures_closure_examples_iter_any.rs:30
Functionmain
()
src/bin/macros_repeat.rs:21
Functionmain
()
src/bin/error_option_unwrap_defaults.rs:82
Functionmain
()
src/bin/scope_lifetime_lifetime_bounds.rs:35
Functionmain
()
src/bin/std_panic.rs:27
← previousnext →301–400 of 519, ranked by callers