pub struct HeapValue<'facet> { /* private fields */ }Available on crate feature
reflect only.Expand description
A type-erased value stored on the heap
Implementations§
Source§impl<'facet> HeapValue<'facet>
impl<'facet> HeapValue<'facet>
Sourcepub fn materialize<T>(self) -> Result<T, ReflectError>where
T: Facet<'facet>,
pub fn materialize<T>(self) -> Result<T, ReflectError>where
T: Facet<'facet>,
Turn this heapvalue into a concrete type
Trait Implementations§
Auto Trait Implementations§
impl<'facet> Freeze for HeapValue<'facet>
impl<'facet> RefUnwindSafe for HeapValue<'facet>
impl<'facet> !Send for HeapValue<'facet>
impl<'facet> !Sync for HeapValue<'facet>
impl<'facet> Unpin for HeapValue<'facet>
impl<'facet> UnwindSafe for HeapValue<'facet>
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