diff options
| author | Rubens Brandao <git@rubens.io> | 2024-04-17 07:23:15 -0300 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2024-04-17 07:43:43 -0300 |
| commit | 90040508478f4551eb303a5056026fd59bb0cdc6 (patch) | |
| tree | aea3cb4d3c0092505d9fd7b0a93b698806600442 /rust/src/rc.rs | |
| parent | f408eb32085956f7e29e0f15fd92aa4b72453370 (diff) | |
allow DataVariable and NameAndType to be transmutable
Diffstat (limited to 'rust/src/rc.rs')
| -rw-r--r-- | rust/src/rc.rs | 1 |
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, } |
