MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / comp_sci_student_greeting

Function comp_sci_student_greeting

0b_traits/rust/supertraits.rs:68–76  ·  view source on GitHub ↗
(student: &dyn CompSciStudent)

Source from the content-addressed store, hash-verified

66}
67
68fn comp_sci_student_greeting(student: &dyn CompSciStudent) -> String {
69 format!(
70 "My name is {} and I attend {}. My favorite language is {}. My Git username is {}",
71 student.name(),
72 student.university(),
73 student.fav_language(),
74 student.git_username()
75 )
76}
77
78fn comp_sci<T: CompSciStudent>(student: &T) -> String {
79 comp_sci_student_greeting(student)

Callers 2

comp_sciFunction · 0.70
comp_sci_vs_programmerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected