pub struct HeapValue<'facet, const BORROW: bool = true> { /* private fields */ }Expand description
A type-erased value stored on the heap
The BORROW const generic indicates whether this value may contain borrowed data:
BORROW = true(default): The value may contain references with lifetime'facetBORROW = false: The value is fully owned and contains no borrowed data
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'facet, const BORROW: bool> Freeze for HeapValue<'facet, BORROW>
impl<'facet, const BORROW: bool> RefUnwindSafe for HeapValue<'facet, BORROW>
impl<'facet, const BORROW: bool = true> !Send for HeapValue<'facet, BORROW>
impl<'facet, const BORROW: bool = true> !Sync for HeapValue<'facet, BORROW>
impl<'facet, const BORROW: bool> Unpin for HeapValue<'facet, BORROW>
impl<'facet, const BORROW: bool> UnwindSafe for HeapValue<'facet, BORROW>
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