Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
ormai@mas.toundefined

ormai

@ormai@mas.to
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • #AdventOfCode #Day5 with #rust
    ormai@mas.toundefined ormai@mas.to

    @riffraff Interesting, i took a peek at the docs. Primitive types implement PartialEq also between references. Just to make things easier, I think, without having to sprinkle the code with *.

    E.g. for i32 https://doc.rust-lang.org/stable/std/primitive.i32.html#impl-PartialEq-for-i32 and if you look at the source you'll find this beauty

    fn eq(&self, other: &Self) -> bool { *self == *other }

    Since the standard library doesn't mention PartialEq between values of primitive types that must be implemented directly in the compiler. Which is pretty cool.

    Uncategorized adventofcode day5 rust
  • 1 / 1
  • Login

  • Login or register to search.
  • First post
    Last post