Bas-Man's Musings
  • Home
  • Categories
    • Series
    • Categories
    • Tags
  • Docs
    • Bind DNS Setup
    • Gmail & Zapier
  • Projects
    • GitHub
    • Line Notification
  • References
    • Python
    • Perl
    • Rust
    • Git
    • LaTeX
    • General
  • Snippets
    • Python
    • Perl
    • Rust
    • Git
    • C++
    • Routers
    • General
  • About

Enum


Enum to Encapulate Errors

 Posted on November 7, 2021  |  1 min  |  125 words  |  Bas-Man

Creating a enum to encapsulate Errors.

[Read More]
Tags: rust enum error 

Swift: Deconstruct SPF: asMechanism with Qualifier

 Posted on May 27, 2021  |  2 min  |  380 words  |  Bas-Man

Hi,

In this article, I will walk through how I re-implemented the enum for Qualifier and MechanismKind. I will also deliver a working asMechanism() function. The diff is here

[Read More]
Categories: Programming learning  Tags: swift learning spf enum rawValue 

Swift: Deconstruct SPF - Qualifier and MechanismKind

Learning Swift: Enum

 Posted on May 27, 2021  |  4 min  |  717 words  |  Bas-Man

In this article I will be looking at defining the enums for Qualifier and MechanismKind. I will also be adding tests to ensure that the functions work as expected. Further I will implement a simple asMechanism() as a proof of concept.

[Read More]
Categories: Programming learning  Tags: swift learning spf beginner enum 

Swift: Deconstruct SPF an Outline and Background

 Posted on May 17, 2021  |  3 min  |  491 words  |  Bas-Man

What is SPF

If you have not followed my rust series on deconstructing SPF you can check it out here.

[Read More]
Categories: Programming learning  Tags: swift learning spf beginner enum struct 

Bas-Man  •  © 2020 - 2026  •  Bas-Man's Musings

Hugo v0.156.0 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll

Privacy | Contact

By using this site, you agree to our use of cookies. We use cookies on this website to give you the best experience on our site. To find out more, read our privacy policy.