<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Generics on Bas-Man's Musings</title><link>https://bas-man.dev/tags/generics/</link><description>Recent content in Generics on Bas-Man's Musings</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 22 May 2021 00:30:00 +0900</lastBuildDate><atom:link href="https://bas-man.dev/tags/generics/index.xml" rel="self" type="application/rss+xml"/><item><title>Swift: Deconstruct SPF: Strings and SubStrings</title><link>https://bas-man.dev/post/swift/swift-spf-generic-string-function/</link><pubDate>Sat, 22 May 2021 00:30:00 +0900</pubDate><guid>https://bas-man.dev/post/swift/swift-spf-generic-string-function/</guid><description>&lt;p&gt;I have been working on my SPF project in &lt;strong&gt;Swift&lt;/strong&gt; of late. As part of this I have started to deal with &lt;strong&gt;substrings&lt;/strong&gt;. &amp;ldquo;&lt;em&gt;A slice of a string&lt;/em&gt;&amp;rdquo; according to &lt;a href="https://developer.apple.com/documentation/swift/substring"&gt;Apple Documentation&lt;/a&gt;. In dealing with this, I have found myself quite often converting substrings back to normal strings. Today we will look at how we can pass &lt;strong&gt;substrings&lt;/strong&gt; directly by making our functions &lt;strong&gt;generic&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Deconstructing SPF with Rust using Generics</title><link>https://bas-man.dev/post/rust/deconstructing-spf-with-rust-using-generics/</link><pubDate>Sat, 10 Apr 2021 23:30:00 +0900</pubDate><guid>https://bas-man.dev/post/rust/deconstructing-spf-with-rust-using-generics/</guid><description>&lt;p&gt;As I mentioned in my previous article &lt;a href="https://bas-man.dev/post/rust/deconstructing-spf-with-rust/"&gt;Deconstructing SPF Records with Rust&lt;/a&gt;. There is a case for using &lt;code&gt;generics&lt;/code&gt; given the amount of overlap between the different mechanisms.&lt;/p&gt;</description></item></channel></rss>