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

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 tado = Rustacean{name: "Yassine", pronouns: &Pronouns::HeHim, distro: "NixOS/Arch"};
    println!("{tado}");
}

#[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 am {}, and use {} BTW!", self.name, self.distro)
    }
}

Pinned

  1. dotfiles-hyprland dotfiles-hyprland Public

    Forked from AmadeusWM/dotfiles-hyprland

    fork

    CSS

  2. MyNvim MyNvim Public

    User oriented Nvim configuration

    Lua 1

  3. tomodoro tomodoro Public

    Your beloved pomodoro timer on your beloved terminal

    Rust 2