Skip to content
View rjvdw's full-sized avatar

Block or report rjvdw

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
rjvdw/README.md
use std::fmt;

fn main() {
    println!("# Hello, World! 🌍");

    let i_am = Person {
        name: "Ruud",
        profession: "software engineer",
        from: "Nijmegen, the Netherlands",
        home_page: "https://www.ruud.online",
    };

    println!();
    println!("{}", i_am);
}

struct Person<'a> {
    name: &'a str,
    profession: &'a str,
    from: &'a str,
    home_page: &'a str,
}

impl fmt::Display for Person<'_> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "My name is {} and I am a {} from {}. To learn more, please visit [my homepage]({}).",
            self.name, self.profession, self.from, self.home_page,
        )
    }
}

Pinned Loading

  1. advent-of-code advent-of-code Public

    My solutions to the Advent of Code puzzles

    Rust 3 1

  2. Computes all primes up to a certain ... Computes all primes up to a certain number.
    1
    use std::env;
    2
    
                  
    3
    fn main() {
    4
        let n = env::args()
    5
            .nth(1)
  3. www.rdcl.dev www.rdcl.dev Public

    My hobby site

    TypeScript 1

  4. www.ruud.online www.ruud.online Public

    My personal homepage

    Astro 1