Skip to content

Instantly share code, notes, and snippets.

From acaa18f587d6154b65d83e88f8dc7e3966645aef Mon Sep 17 00:00:00 2001
From: Martin Dreher <martin@thinkpad>
Date: Tue, 7 Jul 2020 14:01:57 +0200
Subject: [PATCH] disable autoscaling for zoom GUI
---
PKGBUILD | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD

Rust Error Handling Cheatsheet - Result handling functions

Introduction to Rust error handling

Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.

Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.

Result is defined as Ok or Err. The definition is generic, and both alternatives have