We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739b8ab commit c25366bCopy full SHA for c25366b
fyrox-core/src/pool/handle.rs
@@ -566,6 +566,8 @@ where
566
T: ObjectOrVariant<B>,
567
{
568
fn to_base(self) -> Vec<Handle<B>> {
569
+ // SAFETY: The handle does not store the data of its inner type, so Handle<A> is the
570
+ // equivalent of Handle<B>, thus the same is applied to Vec<Handle<..>>.
571
unsafe { std::mem::transmute(self) }
572
}
573
0 commit comments