|
|
@ -13,13 +13,13 @@ pub(crate) trait AsHandle<T: GhostHandle>
|
|
|
|
self.as_handle() as *mut Handle<T>
|
|
|
|
self.as_handle() as *mut Handle<T>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*impl<T: GhostHandle> AsHandle<T> for Handle<T>
|
|
|
|
impl<T: GhostHandle> AsHandle<T> for Handle<T> //this is kinda silly, but its internal and we'll know to never use this
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#[inline] fn as_handle(&mut self) -> &mut Handle<T>
|
|
|
|
#[inline] fn as_handle(&mut self) -> &mut Handle<T>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/ //intentionally leave this unimplemented?
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl<T: GhostHandle> AsHandle<T> for *mut Handle<T>
|
|
|
|
impl<T: GhostHandle> AsHandle<T> for *mut Handle<T>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -32,8 +32,9 @@ impl<T: GhostHandle> AsHandle<T> for *mut Handle<T>
|
|
|
|
*self
|
|
|
|
*self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl<'a, T: GhostHandle, U> AsHandle<T> for &'a mut U
|
|
|
|
impl<'a, T: GhostHandle, U> AsHandle<T> for &'a mut U
|
|
|
|
where U: AsHandle<T>
|
|
|
|
where &'a mut U: AsHandle<T>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
fn as_handle(&mut self) -> &mut Handle<T>
|
|
|
|
fn as_handle(&mut self) -> &mut Handle<T>
|
|
|
|
{
|
|
|
|
{
|
|
|
|