Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ functions
Functions
352 in github.com/bedroombuilds/python2rust
⨍
Functions
352
◇
Types & classes
106
↳
Endpoints
3
↓ 216 callers
Function
print
(result: Result<i32>)
0a_error_handling/rust/boilerplate.rs:23
↓ 8 callers
Method
read_line
( &mut self, buffer: &'buf mut String, )
0d_files/rust/bufread_lines.rs:32
↓ 6 callers
Method
connect
(self, websocket: WebSocket)
22_websockets_server/python/fastapi_ws.py:14
↓ 6 callers
Method
send
(&self)
2b_builder_type_state/rust/email_builder/src/main.rs:19
↓ 5 callers
Function
b
()
13_async/python/minimal.py:9
↓ 5 callers
Function
get
()
22_websockets_server/python/fastapi_ws.py:36
↓ 4 callers
Function
HasColor
(name, default=None, doc=None)
28_rusty_python/python/higher_order.py:1
↓ 4 callers
Method
__init__
(self, name)
0b_traits/python/super.py:5
↓ 4 callers
Function
a
()
13_async/python/minimal.py:3
↓ 4 callers
Method
from
(self, new_from: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:79
↓ 4 callers
Method
name
(self)
0b_traits/python/super.py:8
↓ 4 callers
Method
next
(&mut self)
0d_files/rust/bufread_iterator.rs:40
↓ 3 callers
Function
a
()
13_async/rust/std_async/src/main.rs:5
↓ 3 callers
Method
add
(self, other: D)
0b_traits/rust/defaults.rs:22
↓ 3 callers
Function
b
()
13_async/rust/std_async/src/main.rs:12
↓ 3 callers
Method
build
(self)
2b_builder_type_state/rust/email_builder/src/main.rs:149
↓ 3 callers
Method
build
(self)
2a_builder_pattern/rust/builder/src/main.rs:39
↓ 3 callers
Method
client_id
(self, websocket: WebSocket)
22_websockets_server/python/fastapi_ws.py:24
↓ 3 callers
Function
double_first
(vec)
0a_error_handling/python/boilerplate.py:1
↓ 3 callers
Function
double_first
(vec: Vec<&str>)
0a_error_handling/rust/more_boilerplate.rs:47
↓ 3 callers
Function
double_first
(vec: Vec<&str>)
0a_error_handling/rust/boilerplate.rs:17
↓ 3 callers
Function
double_first
(vec: Vec<&str>)
0a_error_handling/rust/using_eyre/src/main.rs:3
↓ 3 callers
Function
double_first
(vec: Vec<&str>)
0a_error_handling/rust/using_eyre/src/bin/thiserror.rs:12
↓ 3 callers
Function
monte_carlo_pi
Argument takes number of iterations per thread
15_pymod_in_rust/rust/monte_carlo_pi/src/lib.rs:8
↓ 3 callers
Function
print
(result: Result<i32>)
0a_error_handling/rust/more_boilerplate.rs:54
↓ 3 callers
Function
print
(result: Result<i32>)
0a_error_handling/rust/using_eyre/src/main.rs:9
↓ 3 callers
Function
print
(result: Result<i32>)
0a_error_handling/rust/using_eyre/src/bin/thiserror.rs:18
↓ 3 callers
Method
print_parent
(&self)
10_smart_pointers/rust/bintree.rs:24
↓ 2 callers
Method
body
(mut self, txt: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:144
↓ 2 callers
Method
broadcast
(self, message: str, websocket)
22_websockets_server/python/fastapi_ws.py:27
↓ 2 callers
Method
build
(self)
2a_builder_pattern/python/default_args.py:28
↓ 2 callers
Function
bytes_from_file
(filename)
0d_files/python/binary.py:5
↓ 2 callers
Function
bytes_from_file
(filename: impl AsRef<std::path::Path>)
0d_files/rust/binary/src/main.rs:4
↓ 2 callers
Function
classify
(pet)
06_pattern_matching/python/pattern_matching.py:14
↓ 2 callers
Function
classify
(animal: Animals)
06_pattern_matching/rust/pattern_matching.rs:14
↓ 2 callers
Function
comp_sci_student_greeting
(student: &dyn CompSciStudent)
0b_traits/rust/supertraits.rs:68
↓ 2 callers
Method
date
(self, date: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:58
↓ 2 callers
Function
draw
(context)
25_vector_graphics/python/cairodraw.py:4
↓ 2 callers
Function
draw
(context: &cairo::Context)
25_vector_graphics/rust/cairodraw/src/main.rs:1
↓ 2 callers
Function
draw_box
(context, x, y, x2, y2)
25_vector_graphics/python/cairodraw.py:21
↓ 2 callers
Function
draw_box
( context: &cairo::Context, x: f64, y: f64, x2: f64, y2: f64, )
25_vector_graphics/rust/cairodraw/src/main.rs:19
↓ 2 callers
Function
f
()
01_numbers/python/scope.py:5
↓ 2 callers
Method
first_name
(self, name)
2b_builder_type_state/python/typed_builder.py:49
↓ 2 callers
Function
fizz_buzz
(x)
05_functions/python/fizzbuzz.py:3
↓ 2 callers
Method
handle
(self, ev)
27_fltk/python/fltk_ex.py:51
↓ 2 callers
Method
id
(self, uid)
2b_builder_type_state/python/typed_builder.py:17
↓ 2 callers
Function
multiply
(first: str, second: str)
0a_error_handling/python/nohandling.py:1
↓ 2 callers
Function
multiply
(first_number_str: &str, second_number_str: &str)
0a_error_handling/rust/nohandling.rs:1
↓ 2 callers
Method
neighbor
(self, direction)
29_pattern_matching_revisited/python/cmd_split.py:14
↓ 2 callers
Method
neighbor
(self, direction: &str)
29_pattern_matching_revisited/rust/pattern/src/main.rs:20
↓ 2 callers
Function
new_buf
()
0d_files/rust/bufread_iterator.rs:23
↓ 2 callers
Function
open_cert_file
(file: &str, method: F)
1b_sockets/rust/tlsecho/src/bin/rawserver.rs:7
↓ 2 callers
Function
open_cert_file
(file: &str, method: F)
1b_sockets/rust/tlsecho/src/bin/server.rs:7
↓ 2 callers
Function
otherstuff
()
12_modules/rust/foo/other.rs:1
↓ 2 callers
Method
subject
(mut self, subject: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:139
↓ 2 callers
Function
summary
(data)
1e_http_client/python/person.py:4
↓ 2 callers
Method
university
(self)
0b_traits/python/super.py:16
↓ 1 callers
Function
ascii_capitalize
(name)
04_strings_unicode/python/uppercase.py:1
↓ 1 callers
Function
bar
()
12_modules/rust/foo.rs:4
↓ 1 callers
Function
bar
()
12_modules/rust/modules.rs:5
↓ 1 callers
Method
build
(self)
2b_builder_type_state/python/typed_builder.py:44
↓ 1 callers
Method
builder
()
2b_builder_type_state/python/typed_builder.py:3
↓ 1 callers
Function
call_brother
()
12_modules/rust/reexports.rs:4
↓ 1 callers
Function
call_mom
()
12_modules/rust/reexports.rs:3
↓ 1 callers
Method
cc
(self, new_cc: impl Into<String>)
2b_builder_type_state/rust/email_builder/src/main.rs:120
↓ 1 callers
Function
comp_sci_student_greeting
(student)
0b_traits/python/super.py:72
↓ 1 callers
Method
complete
(self)
2a_builder_pattern/python/default_args.py:10
↓ 1 callers
Method
describe
(self)
29_pattern_matching_revisited/python/cmd_split.py:12
↓ 1 callers
Method
describe
(&self)
29_pattern_matching_revisited/rust/pattern/src/main.rs:16
↓ 1 callers
Method
disconnect
(self, websocket: WebSocket)
22_websockets_server/python/fastapi_ws.py:19
↓ 1 callers
Function
do_some_other
(x)
05_functions/python/functions.py:2
↓ 1 callers
Function
do_some_other
(x: u32)
05_functions/rust/functions.rs:2
↓ 1 callers
Function
do_something
(x)
05_functions/python/functions.py:1
↓ 1 callers
Method
drop
(self, what, where)
28_rusty_python/python/pattern_matching.py:6
↓ 1 callers
Method
drop
(self, obj, room)
29_pattern_matching_revisited/python/cmd_split.py:38
↓ 1 callers
Method
drop
(&mut self, obj: String, room: &mut Room)
29_pattern_matching_revisited/rust/pattern/src/main.rs:62
↓ 1 callers
Method
email
(self, email)
2b_builder_type_state/python/typed_builder.py:20
↓ 1 callers
Method
fav_language
(self)
0b_traits/python/super.py:22
↓ 1 callers
Function
fetch
()
1e_http_client/python/blocking.py:7
↓ 1 callers
Function
fetch_person
(session, url)
1e_http_client/python/async.py:8
↓ 1 callers
Function
fib
(n: int)
28_rusty_python/python/type_hinting.py:4
↓ 1 callers
Method
first_name
(mut self, first_name: impl Into<String>)
2a_builder_pattern/rust/builder/src/main.rs:28
↓ 1 callers
Method
git_username
(self)
0b_traits/python/super.py:30
↓ 1 callers
Function
go
()
21_postgresql/python/pg_async.py:7
↓ 1 callers
Function
handle_client
(stream: TcpStream)
1b_sockets/rust/echoserver.rs:13
↓ 1 callers
Function
handle_client
(mut socket: TcpStream, config: Arc<rustls::ServerConfig>)
1b_sockets/rust/tlsecho/src/bin/rawserver.rs:36
↓ 1 callers
Function
handle_client
(mut socket: TcpStream, config: Arc<rustls::ServerConfig>)
1b_sockets/rust/tlsecho/src/bin/server.rs:36
↓ 1 callers
Method
inc
Atomically increment the counter by num and return the new value
22_websockets_server/python/atomic.py:11
↓ 1 callers
Function
is_proper_date
(line)
17_regex/python/io_regex.py:8
↓ 1 callers
Function
is_proper_date
The recognized date format is YYYY-MM-DD.
17_regex/rust/io_regex/src/main.rs:7
↓ 1 callers
Function
julia
()
24_raster_graphics/python/thumbnails.py:6
↓ 1 callers
Function
julia
()
24_raster_graphics/rust/thumbnail/src/main.rs:4
↓ 1 callers
Function
main
()
13_async/python/minimal.py:13
↓ 1 callers
Function
main
()
1e_http_client/python/async.py:14
↓ 1 callers
Function
main
()
1e_http_client/python/blocking.py:15
↓ 1 callers
Function
main
()
23_websockets_client/python/ws_client.py:26
↓ 1 callers
Function
main_
(py: Python)
16_python_inside_rust/rust/py_in_rust/src/main.rs:14
↓ 1 callers
Function
make_adder_function
(y: i32)
0b_traits/rust/return_trait.rs:1
↓ 1 callers
Function
make_person
(rnd)
0b_traits/python/super.py:61
↓ 1 callers
Function
make_person
(rnd: u8)
0b_traits/rust/supertraits.rs:95
next →
1–100 of 352, ranked by callers