Category: Rust

Rust for Java Devs – Structs

Next up in Rust for Java Devs we have structs. They are used to hold data within a logical unit that can be passed to other functions or execute their own methods on the values that they store. Now this sounds very familiar... Java objects do the same thing. For example if you took a ...

Rust for Java Devs – Creating functions

In this post of Rust for Java Devs we will look at creating functions in Rust. Functions in Rust do not differ that much from Java methods but there are a few little differences. There is also the topic of Rust's lifetimes compared to Java's garbage collection that one could argue separates the two from ...

Rust for Java Devs – Compiling code and using Cargo

After my last post seemed to be well received I am back with another Rust for Java Devs post. Today we will look at a compiling Rust code and have a brief look at using the basics of Cargo. For a developer there isn't much difference between how to compile Rust code compared to Java, ...

Rust for Java Devs – Creating Variables (first Rust post)

I'm going to do something different today and write about Rust instead of Java. This is something that I want to give a try and if it all goes well I will continue writing some posts about Rust in the future. I will be writing about learning Rust from the perspective of a Java developer ...