Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Shared via Rust Playground
pub struct Brick {
pub peer: Peer,
pub path: Path,
impl Brick{
pub fn as_str(&self) -> &'static str{
let s = self.peer.hostname.clone();
let ret_str = s + ":" + &self.path.to_str().unwrap();
return ret_str.as_str();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment