pub struct MiraHandle<T: Any + ?Sized> { /* private fields */ }Expand description
A compact, runtime-checked handle to an arena-managed value.
Implementations§
Source§impl<T: MiraArray + ?Sized> MiraHandle<T>
impl<T: MiraArray + ?Sized> MiraHandle<T>
Sourcepub fn erase_array(self) -> MiraHandle<dyn MiraArray>
pub fn erase_array(self) -> MiraHandle<dyn MiraArray>
Erase the concrete Rust type while preserving its MiraScript category.
Source§impl<T: MiraRecord + ?Sized> MiraHandle<T>
impl<T: MiraRecord + ?Sized> MiraHandle<T>
Sourcepub fn erase_record(self) -> MiraHandle<dyn MiraRecord>
pub fn erase_record(self) -> MiraHandle<dyn MiraRecord>
Erase the concrete Rust type while preserving its MiraScript category.
Source§impl<T: MiraFunction + ?Sized> MiraHandle<T>
impl<T: MiraFunction + ?Sized> MiraHandle<T>
Sourcepub fn erase_function(self) -> MiraHandle<dyn MiraFunction>
pub fn erase_function(self) -> MiraHandle<dyn MiraFunction>
Erase the concrete Rust type while preserving its MiraScript category.
Source§impl<T: MiraModule + ?Sized> MiraHandle<T>
impl<T: MiraModule + ?Sized> MiraHandle<T>
Sourcepub fn erase_module(self) -> MiraHandle<dyn MiraModule>
pub fn erase_module(self) -> MiraHandle<dyn MiraModule>
Erase the concrete Rust type while preserving its MiraScript category.
Trait Implementations§
impl<T: Any + ?Sized> Copy for MiraHandle<T>
impl<T: Any + ?Sized> Eq for MiraHandle<T>
Auto Trait Implementations§
impl<T> Freeze for MiraHandle<T>
impl<T> RefUnwindSafe for MiraHandle<T>
impl<T> Send for MiraHandle<T>
impl<T> Sync for MiraHandle<T>
impl<T> Unpin for MiraHandle<T>
impl<T> UnsafeUnpin for MiraHandle<T>
impl<T> UnwindSafe for MiraHandle<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.