pub enum BindingKind {
Immutable,
MayJoin,
MemoryOp,
}Expand description
Mutability status of a let-bound variable.
Variants§
Immutable
Binding is immutable: assigned exactly once, never escape a case branch boundary. Safe to promote unconditionally.
MayJoin
Binding crosses a case-branch boundary: requires phi-node insertion when promoted.
MemoryOp
Binding is the result of a Reset/Reuse operation and must NOT be promoted (memory semantics must be preserved).
Trait Implementations§
Source§impl Clone for BindingKind
impl Clone for BindingKind
Source§fn clone(&self) -> BindingKind
fn clone(&self) -> BindingKind
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 BindingKind
impl Debug for BindingKind
Source§impl PartialEq for BindingKind
impl PartialEq for BindingKind
impl Eq for BindingKind
impl StructuralPartialEq for BindingKind
Auto Trait Implementations§
impl Freeze for BindingKind
impl RefUnwindSafe for BindingKind
impl Send for BindingKind
impl Sync for BindingKind
impl Unpin for BindingKind
impl UnsafeUnpin for BindingKind
impl UnwindSafe for BindingKind
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