use std::borrow::Cow;
fn ensure_prefix(input: &str) -> Cow<str> {
if input.starts_with("https://") {
Cow::Borrowed(input)
} else {
fn greet(name: &str) {
println!("Hello, {}", name);
}
fn main() {
let owned = String::from("Alice");