I want to add my own function to a pre-existing struct which I don't have control over. As concrete example I want to to create an instance of std::fs::File
let logfile = std::fs::OpenOptions::new().create(true).open("file.txt").unwrap();
Then I want somehow create my own function fn foo() so that I'm later able to do logfile.foo();
I'm not sure if this is even possible, to be honest.