use anyhow::Result;
use rand::seq::SliceRandom;
fn main() -> Result<Product> {
let programmer: Programmer = Programmer{
name: "Hayden Gray",
languages:
vec!["Python",
"C",
"C++",
"Rust",
"Odin",
"Dart",
"JS/TS",
"Terraform"
]};
programmer.hello_world();
programmer.do_work()
}
struct Programmer {
name: str,
languages: Vec<str>,
}
impl Programmer {
fn hello_world(&self) -> String {
format!("Hello, my name is {} ", self.name)
}
fn do_work(&self) -> Result<Product> {
let language = self.languages.choose(&mut rand::thread_rng());
let mut done: bool = false;
let mut product: Result<Product>;
while !done {
//Do Work
}
product
}
}
Popular repositories Loading
-
-
Automatic-Rotoscoper
Automatic-Rotoscoper PublicA program that allows the user to automatically rotoscope footage frame by frame.
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.