Box<T>Box Is a Unique Type
2022-07-22
+nilstriebs blog
diff --git a/index.xml b/index.xml
index 80cee94..b93b628 100644
--- a/index.xml
+++ b/index.xml
@@ -1,4 +1,4 @@
-nilstriebs blog /Recent content on nilstriebs blog Hugo -- gohugo.io en-us Fri, 22 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Fri, 22 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
+nilstriebs blog /Recent content on nilstriebs blog Hugo -- gohugo.io en-us Sat, 23 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Sat, 23 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
struct Fields { a: String, b: String, } let fields = Box::new(Fields { a: "a".to_string(), b: "b".to_string() }); let a = fields.a; let b = fields.b; This kind of partial deref move is just one of the spectacular magic tricks box has up its sleeve, and they exist for good reason: They are very useful. <p>We have all used <code>Box<T></code> before in our Rust code. It’s a glorious type, with great ergonomics
and flexibitility. We can use it to put our values on the heap, but it can do even more
than that!</p>
diff --git a/posts/box-is-a-unique-type/index.html b/posts/box-is-a-unique-type/index.html
index beb7f54..b26c4a2 100644
--- a/posts/box-is-a-unique-type/index.html
+++ b/posts/box-is-a-unique-type/index.html
@@ -1,4 +1,4 @@
-Box Is a Unique Type :: nilstriebs blog
Box Is a Unique Type
2022-07-23
:: Nilstrieb
#rust
#unsafe code About better aliasing semantics for
Box Is a Unique Type
2022-07-22
+Box Is a Unique Type :: nilstriebs blog Posts :: nilstriebs blog
Box Is a Unique Type
2022-07-23
:: Nilstrieb
:: 12 min read (2370 words)
#rust
#unsafe code We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics
diff --git a/posts/index.html b/posts/index.html
index dcfea3c..0c3b5f2 100644
--- a/posts/index.html
+++ b/posts/index.html
@@ -1,4 +1,4 @@
-
Box Is a Unique Type
2022-07-22
+Posts :: nilstriebs blog
diff --git a/posts/index.xml b/posts/index.xml
index dcf037b..7892303 100644
--- a/posts/index.xml
+++ b/posts/index.xml
@@ -1,4 +1,4 @@
-Posts on nilstriebs blog /posts/Recent content in Posts on nilstriebs blog Hugo -- gohugo.io en-us Fri, 22 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Fri, 22 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
+Posts on nilstriebs blog /posts/Recent content in Posts on nilstriebs blog Hugo -- gohugo.io en-us Sat, 23 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Sat, 23 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
struct Fields { a: String, b: String, } let fields = Box::new(Fields { a: "a".to_string(), b: "b".to_string() }); let a = fields.a; let b = fields.b; This kind of partial deref move is just one of the spectacular magic tricks box has up its sleeve, and they exist for good reason: They are very useful. <p>We have all used <code>Box<T></code> before in our Rust code. It’s a glorious type, with great ergonomics
and flexibitility. We can use it to put our values on the heap, but it can do even more
than that!</p>
diff --git a/sitemap.xml b/sitemap.xml
index b34f2e2..de25e85 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-/posts/box-is-a-unique-type/ 2022-07-22T00:00:00+00:00 / 2022-07-22T00:00:00+00:00 /posts/ 2022-07-22T00:00:00+00:00 /tags/rust/ 2022-07-22T00:00:00+00:00 /tags/ 2022-07-22T00:00:00+00:00 /tags/unsafe-code/ 2022-07-22T00:00:00+00:00 /categories/
\ No newline at end of file
+/posts/box-is-a-unique-type/ 2022-07-23T00:00:00+00:00 / 2022-07-23T00:00:00+00:00 /posts/ 2022-07-23T00:00:00+00:00 /tags/rust/ 2022-07-23T00:00:00+00:00 /tags/ 2022-07-23T00:00:00+00:00 /tags/unsafe-code/ 2022-07-23T00:00:00+00:00 /categories/
\ No newline at end of file
diff --git a/tags/index.xml b/tags/index.xml
index 76b866c..536989b 100644
--- a/tags/index.xml
+++ b/tags/index.xml
@@ -1 +1 @@
-Tags on nilstriebs blog /tags/Recent content in Tags on nilstriebs blog Hugo -- gohugo.io en-us Fri, 22 Jul 2022 00:00:00 +0000 rust /tags/rust/Fri, 22 Jul 2022 00:00:00 +0000 /tags/rust/ unsafe code /tags/unsafe-code/Fri, 22 Jul 2022 00:00:00 +0000 /tags/unsafe-code/
\ No newline at end of file
+Tags on nilstriebs blog /tags/Recent content in Tags on nilstriebs blog Hugo -- gohugo.io en-us Sat, 23 Jul 2022 00:00:00 +0000 rust /tags/rust/Sat, 23 Jul 2022 00:00:00 +0000 /tags/rust/ unsafe code /tags/unsafe-code/Sat, 23 Jul 2022 00:00:00 +0000 /tags/unsafe-code/
\ No newline at end of file
diff --git a/tags/rust/index.html b/tags/rust/index.html
index 7e0ecff..a754780 100644
--- a/tags/rust/index.html
+++ b/tags/rust/index.html
@@ -1,4 +1,4 @@
-rust :: nilstriebs blog
Box Is a Unique Type
2022-07-23
:: Nilstrieb
#rust
#unsafe code About better aliasing semantics for
Box<T>Box Is a Unique Type
2022-07-22
+rust :: nilstriebs blog
diff --git a/tags/rust/index.xml b/tags/rust/index.xml
index e333044..5373146 100644
--- a/tags/rust/index.xml
+++ b/tags/rust/index.xml
@@ -1,4 +1,4 @@
-rust on nilstriebs blog /tags/rust/Recent content in rust on nilstriebs blog Hugo -- gohugo.io en-us Fri, 22 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Fri, 22 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
+rust on nilstriebs blog /tags/rust/Recent content in rust on nilstriebs blog Hugo -- gohugo.io en-us Sat, 23 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Sat, 23 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
struct Fields { a: String, b: String, } let fields = Box::new(Fields { a: "a".to_string(), b: "b".to_string() }); let a = fields.a; let b = fields.b; This kind of partial deref move is just one of the spectacular magic tricks box has up its sleeve, and they exist for good reason: They are very useful. <p>We have all used <code>Box<T></code> before in our Rust code. It’s a glorious type, with great ergonomics
and flexibitility. We can use it to put our values on the heap, but it can do even more
than that!</p>
diff --git a/tags/unsafe-code/index.html b/tags/unsafe-code/index.html
index afc2c7a..be8bb32 100644
--- a/tags/unsafe-code/index.html
+++ b/tags/unsafe-code/index.html
@@ -1,4 +1,4 @@
-unsafe code :: nilstriebs blog
Box Is a Unique Type
2022-07-23
:: Nilstrieb
#rust
#unsafe code About better aliasing semantics for
Box<T>Box Is a Unique Type
2022-07-22
+unsafe code :: nilstriebs blog
diff --git a/tags/unsafe-code/index.xml b/tags/unsafe-code/index.xml
index cf43f82..ae8f6a4 100644
--- a/tags/unsafe-code/index.xml
+++ b/tags/unsafe-code/index.xml
@@ -1,4 +1,4 @@
-unsafe code on nilstriebs blog /tags/unsafe-code/Recent content in unsafe code on nilstriebs blog Hugo -- gohugo.io en-us Fri, 22 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Fri, 22 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
+unsafe code on nilstriebs blog /tags/unsafe-code/Recent content in unsafe code on nilstriebs blog Hugo -- gohugo.io en-us Sat, 23 Jul 2022 00:00:00 +0000 Box Is a Unique Type /posts/box-is-a-unique-type/Sat, 23 Jul 2022 00:00:00 +0000 /posts/box-is-a-unique-type/ We have all used Box<T> before in our Rust code. It’s a glorious type, with great ergonomics and flexibitility. We can use it to put our values on the heap, but it can do even more than that!
struct Fields { a: String, b: String, } let fields = Box::new(Fields { a: "a".to_string(), b: "b".to_string() }); let a = fields.a; let b = fields.b; This kind of partial deref move is just one of the spectacular magic tricks box has up its sleeve, and they exist for good reason: They are very useful. <p>We have all used <code>Box<T></code> before in our Rust code. It’s a glorious type, with great ergonomics
and flexibitility. We can use it to put our values on the heap, but it can do even more
than that!</p>
Box Is a Unique Type
2022-07-23
:: Nilstrieb
#rust
#unsafe code About better aliasing semantics for
Box<T>