MCPcopy Create free account

hub / github.com/bedroombuilds/python2rust / functions

Functions352 in github.com/bedroombuilds/python2rust

↓ 216 callersFunctionprint
(result: Result<i32>)
0a_error_handling/rust/boilerplate.rs:23
↓ 8 callersMethodread_line
( &mut self, buffer: &'buf mut String, )
0d_files/rust/bufread_lines.rs:32
↓ 6 callersMethodconnect
(self, websocket: WebSocket)
22_websockets_server/python/fastapi_ws.py:14
↓ 6 callersMethodsend
(&self)
2b_builder_type_state/rust/email_builder/src/main.rs:19
↓ 5 callersFunctionb
()
13_async/python/minimal.py:9
↓ 5 callersFunctionget
()
22_websockets_server/python/fastapi_ws.py:36
↓ 4 callersFunctionHasColor
(name, default=None, doc=None)
28_rusty_python/python/higher_order.py:1
↓ 4 callersMethod__init__
(self, name)
0b_traits/python/super.py:5
↓ 4 callersFunctiona
()
13_async/python/minimal.py:3
↓ 4 callersMethodfrom
(self, new_from: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:79
↓ 4 callersMethodname
(self)
0b_traits/python/super.py:8
↓ 4 callersMethodnext
(&mut self)
0d_files/rust/bufread_iterator.rs:40
↓ 3 callersFunctiona
()
13_async/rust/std_async/src/main.rs:5
↓ 3 callersMethodadd
(self, other: D)
0b_traits/rust/defaults.rs:22
↓ 3 callersFunctionb
()
13_async/rust/std_async/src/main.rs:12
↓ 3 callersMethodbuild
(self)
2b_builder_type_state/rust/email_builder/src/main.rs:149
↓ 3 callersMethodbuild
(self)
2a_builder_pattern/rust/builder/src/main.rs:39
↓ 3 callersMethodclient_id
(self, websocket: WebSocket)
22_websockets_server/python/fastapi_ws.py:24
↓ 3 callersFunctiondouble_first
(vec)
0a_error_handling/python/boilerplate.py:1
↓ 3 callersFunctiondouble_first
(vec: Vec<&str>)
0a_error_handling/rust/more_boilerplate.rs:47
↓ 3 callersFunctiondouble_first
(vec: Vec<&str>)
0a_error_handling/rust/boilerplate.rs:17
↓ 3 callersFunctiondouble_first
(vec: Vec<&str>)
0a_error_handling/rust/using_eyre/src/main.rs:3
↓ 3 callersFunctiondouble_first
(vec: Vec<&str>)
0a_error_handling/rust/using_eyre/src/bin/thiserror.rs:12
↓ 3 callersFunctionmonte_carlo_pi
Argument takes number of iterations per thread
15_pymod_in_rust/rust/monte_carlo_pi/src/lib.rs:8
↓ 3 callersFunctionprint
(result: Result<i32>)
0a_error_handling/rust/more_boilerplate.rs:54
↓ 3 callersFunctionprint
(result: Result<i32>)
0a_error_handling/rust/using_eyre/src/main.rs:9
↓ 3 callersFunctionprint
(result: Result<i32>)
0a_error_handling/rust/using_eyre/src/bin/thiserror.rs:18
↓ 3 callersMethodprint_parent
(&self)
10_smart_pointers/rust/bintree.rs:24
↓ 2 callersMethodbody
(mut self, txt: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:144
↓ 2 callersMethodbroadcast
(self, message: str, websocket)
22_websockets_server/python/fastapi_ws.py:27
↓ 2 callersMethodbuild
(self)
2a_builder_pattern/python/default_args.py:28
↓ 2 callersFunctionbytes_from_file
(filename)
0d_files/python/binary.py:5
↓ 2 callersFunctionbytes_from_file
(filename: impl AsRef<std::path::Path>)
0d_files/rust/binary/src/main.rs:4
↓ 2 callersFunctionclassify
(pet)
06_pattern_matching/python/pattern_matching.py:14
↓ 2 callersFunctionclassify
(animal: Animals)
06_pattern_matching/rust/pattern_matching.rs:14
↓ 2 callersFunctioncomp_sci_student_greeting
(student: &dyn CompSciStudent)
0b_traits/rust/supertraits.rs:68
↓ 2 callersMethoddate
(self, date: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:58
↓ 2 callersFunctiondraw
(context)
25_vector_graphics/python/cairodraw.py:4
↓ 2 callersFunctiondraw
(context: &cairo::Context)
25_vector_graphics/rust/cairodraw/src/main.rs:1
↓ 2 callersFunctiondraw_box
(context, x, y, x2, y2)
25_vector_graphics/python/cairodraw.py:21
↓ 2 callersFunctiondraw_box
( context: &cairo::Context, x: f64, y: f64, x2: f64, y2: f64, )
25_vector_graphics/rust/cairodraw/src/main.rs:19
↓ 2 callersFunctionf
()
01_numbers/python/scope.py:5
↓ 2 callersMethodfirst_name
(self, name)
2b_builder_type_state/python/typed_builder.py:49
↓ 2 callersFunctionfizz_buzz
(x)
05_functions/python/fizzbuzz.py:3
↓ 2 callersMethodhandle
(self, ev)
27_fltk/python/fltk_ex.py:51
↓ 2 callersMethodid
(self, uid)
2b_builder_type_state/python/typed_builder.py:17
↓ 2 callersFunctionmultiply
(first: str, second: str)
0a_error_handling/python/nohandling.py:1
↓ 2 callersFunctionmultiply
(first_number_str: &str, second_number_str: &str)
0a_error_handling/rust/nohandling.rs:1
↓ 2 callersMethodneighbor
(self, direction)
29_pattern_matching_revisited/python/cmd_split.py:14
↓ 2 callersMethodneighbor
(self, direction: &str)
29_pattern_matching_revisited/rust/pattern/src/main.rs:20
↓ 2 callersFunctionnew_buf
()
0d_files/rust/bufread_iterator.rs:23
↓ 2 callersFunctionopen_cert_file
(file: &str, method: F)
1b_sockets/rust/tlsecho/src/bin/rawserver.rs:7
↓ 2 callersFunctionopen_cert_file
(file: &str, method: F)
1b_sockets/rust/tlsecho/src/bin/server.rs:7
↓ 2 callersFunctionotherstuff
()
12_modules/rust/foo/other.rs:1
↓ 2 callersMethodsubject
(mut self, subject: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:139
↓ 2 callersFunctionsummary
(data)
1e_http_client/python/person.py:4
↓ 2 callersMethoduniversity
(self)
0b_traits/python/super.py:16
↓ 1 callersFunctionascii_capitalize
(name)
04_strings_unicode/python/uppercase.py:1
↓ 1 callersFunctionbar
()
12_modules/rust/foo.rs:4
↓ 1 callersFunctionbar
()
12_modules/rust/modules.rs:5
↓ 1 callersMethodbuild
(self)
2b_builder_type_state/python/typed_builder.py:44
↓ 1 callersMethodbuilder
()
2b_builder_type_state/python/typed_builder.py:3
↓ 1 callersFunctioncall_brother
()
12_modules/rust/reexports.rs:4
↓ 1 callersFunctioncall_mom
()
12_modules/rust/reexports.rs:3
↓ 1 callersMethodcc
(self, new_cc: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:120
↓ 1 callersFunctioncomp_sci_student_greeting
(student)
0b_traits/python/super.py:72
↓ 1 callersMethodcomplete
(self)
2a_builder_pattern/python/default_args.py:10
↓ 1 callersMethoddescribe
(self)
29_pattern_matching_revisited/python/cmd_split.py:12
↓ 1 callersMethoddescribe
(&self)
29_pattern_matching_revisited/rust/pattern/src/main.rs:16
↓ 1 callersMethoddisconnect
(self, websocket: WebSocket)
22_websockets_server/python/fastapi_ws.py:19
↓ 1 callersFunctiondo_some_other
(x)
05_functions/python/functions.py:2
↓ 1 callersFunctiondo_some_other
(x: u32)
05_functions/rust/functions.rs:2
↓ 1 callersFunctiondo_something
(x)
05_functions/python/functions.py:1
↓ 1 callersMethoddrop
(self, what, where)
28_rusty_python/python/pattern_matching.py:6
↓ 1 callersMethoddrop
(self, obj, room)
29_pattern_matching_revisited/python/cmd_split.py:38
↓ 1 callersMethoddrop
(&mut self, obj: String, room: &mut Room)
29_pattern_matching_revisited/rust/pattern/src/main.rs:62
↓ 1 callersMethodemail
(self, email)
2b_builder_type_state/python/typed_builder.py:20
↓ 1 callersMethodfav_language
(self)
0b_traits/python/super.py:22
↓ 1 callersFunctionfetch
()
1e_http_client/python/blocking.py:7
↓ 1 callersFunctionfetch_person
(session, url)
1e_http_client/python/async.py:8
↓ 1 callersFunctionfib
(n: int)
28_rusty_python/python/type_hinting.py:4
↓ 1 callersMethodfirst_name
(mut self, first_name: impl Into<String>)
2a_builder_pattern/rust/builder/src/main.rs:28
↓ 1 callersMethodgit_username
(self)
0b_traits/python/super.py:30
↓ 1 callersFunctiongo
()
21_postgresql/python/pg_async.py:7
↓ 1 callersFunctionhandle_client
(stream: TcpStream)
1b_sockets/rust/echoserver.rs:13
↓ 1 callersFunctionhandle_client
(mut socket: TcpStream, config: Arc<rustls::ServerConfig>)
1b_sockets/rust/tlsecho/src/bin/rawserver.rs:36
↓ 1 callersFunctionhandle_client
(mut socket: TcpStream, config: Arc<rustls::ServerConfig>)
1b_sockets/rust/tlsecho/src/bin/server.rs:36
↓ 1 callersMethodinc
Atomically increment the counter by num and return the new value
22_websockets_server/python/atomic.py:11
↓ 1 callersFunctionis_proper_date
(line)
17_regex/python/io_regex.py:8
↓ 1 callersFunctionis_proper_date
The recognized date format is YYYY-MM-DD.
17_regex/rust/io_regex/src/main.rs:7
↓ 1 callersFunctionjulia
()
24_raster_graphics/python/thumbnails.py:6
↓ 1 callersFunctionjulia
()
24_raster_graphics/rust/thumbnail/src/main.rs:4
↓ 1 callersFunctionmain
()
13_async/python/minimal.py:13
↓ 1 callersFunctionmain
()
1e_http_client/python/async.py:14
↓ 1 callersFunctionmain
()
1e_http_client/python/blocking.py:15
↓ 1 callersFunctionmain
()
23_websockets_client/python/ws_client.py:26
↓ 1 callersFunctionmain_
(py: Python)
16_python_inside_rust/rust/py_in_rust/src/main.rs:14
↓ 1 callersFunctionmake_adder_function
(y: i32)
0b_traits/rust/return_trait.rs:1
↓ 1 callersFunctionmake_person
(rnd)
0b_traits/python/super.py:61
↓ 1 callersFunctionmake_person
(rnd: u8)
0b_traits/rust/supertraits.rs:95
next →1–100 of 352, ranked by callers