Skip to content
View yassinebenarbia's full-sized avatar
🦀
Rusting
🦀
Rusting

Block or report yassinebenarbia

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
yassinebenarbia/README.md

Hi there.

use std::fmt;

fn main() {
    let intro = Rustacean{name: "Yassine", pronouns: &Pronouns::HeHim, distro: "NixOS/Arch"};
    println!("{intro}");
}

#[allow(dead_code)]
struct Rustacean<'a> {
    name: &'a str,
    pronouns: &'a Pronouns<'a>,
    distro: &'a str,
}

#[allow(dead_code)]
enum Pronouns<'a> {
    HeHim,
    SheHer,
    TheyThem,
    ItIts,
    Other(&'a str),
}

impl fmt::Display for Rustacean<'_> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "Hi! I'm {}, and I use {} BTW!", self.name, self.distro)
    }
}

Pinned Loading

  1. MyNvim MyNvim Public

    User oriented Nvim configuration

    Lua 1

  2. tomodoro tomodoro Public

    Your beloved pomodoro timer on your beloved terminal

    Rust 2

  3. Project Project Public

    My graduation project

    Python

  4. mmp mmp Public

    My Password Manager

    Rust 1