summaryrefslogtreecommitdiff
path: root/rust/src/rc.rs
diff options
context:
space:
mode:
authorRubens Brandao <git@rubens.io>2024-04-17 07:23:15 -0300
committerRubens Brandao <git@rubens.io>2024-04-17 07:43:43 -0300
commit90040508478f4551eb303a5056026fd59bb0cdc6 (patch)
treeaea3cb4d3c0092505d9fd7b0a93b698806600442 /rust/src/rc.rs
parentf408eb32085956f7e29e0f15fd92aa4b72453370 (diff)
allow DataVariable and NameAndType to be transmutable
Diffstat (limited to 'rust/src/rc.rs')
-rw-r--r--rust/src/rc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/src/rc.rs b/rust/src/rc.rs
index cdcae179..91e51565 100644
--- a/rust/src/rc.rs
+++ b/rust/src/rc.rs
@@ -43,6 +43,7 @@ pub unsafe trait RefCountable: ToOwned<Owned = Ref<Self>> + Sized {
// Represents an 'owned' reference tracked by the core
// that we are responsible for cleaning up once we're
// done with the encapsulated value.
+#[repr(transparent)]
pub struct Ref<T: RefCountable> {
contents: T,
}