pub enum EscapeAnnotation {
StackAlloc,
HeapAlloc,
Unknown,
}Expand description
An annotation that records the chosen allocation strategy for an expression.
Variants§
StackAlloc
This allocation will be placed on the stack.
HeapAlloc
This allocation will be placed on the heap.
Unknown
Allocation strategy is not yet determined.
Trait Implementations§
Source§impl Clone for EscapeAnnotation
impl Clone for EscapeAnnotation
Source§fn clone(&self) -> EscapeAnnotation
fn clone(&self) -> EscapeAnnotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EscapeAnnotation
impl Debug for EscapeAnnotation
Source§impl PartialEq for EscapeAnnotation
impl PartialEq for EscapeAnnotation
impl Eq for EscapeAnnotation
impl StructuralPartialEq for EscapeAnnotation
Auto Trait Implementations§
impl Freeze for EscapeAnnotation
impl RefUnwindSafe for EscapeAnnotation
impl Send for EscapeAnnotation
impl Sync for EscapeAnnotation
impl Unpin for EscapeAnnotation
impl UnsafeUnpin for EscapeAnnotation
impl UnwindSafe for EscapeAnnotation
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