pub enum ValueRef<'str, 'ctx, R = ModuleView<'ctx, 'str>> {
Literal(LiteralRef<'str, 'ctx>),
Bytes(BytesRef<'str, 'ctx>),
Instruction(InstructionRef<'str, 'ctx, R>),
BasicBlock(BlockRef<'str, 'ctx, R>),
BlockParam(BlockParamRef<'str, 'ctx, R>),
Varnode(VarnodeRef<'str, 'ctx>),
Temp(TempRef<'str, 'ctx, R>),
Function(FunctionRef<'str, 'ctx, R>),
Poison(PoisonRef<'str, 'ctx>),
}Expand description
Variants§
Literal(LiteralRef<'str, 'ctx>)
Bytes(BytesRef<'str, 'ctx>)
Instruction(InstructionRef<'str, 'ctx, R>)
BasicBlock(BlockRef<'str, 'ctx, R>)
BlockParam(BlockParamRef<'str, 'ctx, R>)
Varnode(VarnodeRef<'str, 'ctx>)
Temp(TempRef<'str, 'ctx, R>)
Function(FunctionRef<'str, 'ctx, R>)
Poison(PoisonRef<'str, 'ctx>)
Implementations§
Trait Implementations§
Source§fn from(lit_ref: LiteralRef<'str, 'ctx>) -> Self
fn from(lit_ref: LiteralRef<'str, 'ctx>) -> Self
Converts to this type from the input type.
Source§fn from(var_ref: VarnodeRef<'str, 'ctx>) -> Self
fn from(var_ref: VarnodeRef<'str, 'ctx>) -> Self
Converts to this type from the input type.
Source§impl<'str, 'ctx, R> From<BlockParamRef<'str, 'ctx, R>> for ValueRef<'str, 'ctx, R>
impl<'str, 'ctx, R> From<BlockParamRef<'str, 'ctx, R>> for ValueRef<'str, 'ctx, R>
Source§fn from(param_ref: BlockParamRef<'str, 'ctx, R>) -> Self
fn from(param_ref: BlockParamRef<'str, 'ctx, R>) -> Self
Converts to this type from the input type.
Source§impl<'str, 'ctx, R> From<FunctionRef<'str, 'ctx, R>> for ValueRef<'str, 'ctx, R>
impl<'str, 'ctx, R> From<FunctionRef<'str, 'ctx, R>> for ValueRef<'str, 'ctx, R>
Source§fn from(fn_ref: FunctionRef<'str, 'ctx, R>) -> Self
fn from(fn_ref: FunctionRef<'str, 'ctx, R>) -> Self
Converts to this type from the input type.
Source§impl<'str, 'ctx, R> From<InstructionRef<'str, 'ctx, R>> for ValueRef<'str, 'ctx, R>
impl<'str, 'ctx, R> From<InstructionRef<'str, 'ctx, R>> for ValueRef<'str, 'ctx, R>
Source§fn from(insn_ref: InstructionRef<'str, 'ctx, R>) -> Self
fn from(insn_ref: InstructionRef<'str, 'ctx, R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'str, 'ctx, R> Freeze for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: Freeze,
BlockRef<'str, 'ctx, R>: Freeze,
BlockParamRef<'str, 'ctx, R>: Freeze,
TempRef<'str, 'ctx, R>: Freeze,
FunctionRef<'str, 'ctx, R>: Freeze,
impl<'str, 'ctx, R> RefUnwindSafe for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: RefUnwindSafe,
BlockRef<'str, 'ctx, R>: RefUnwindSafe,
BlockParamRef<'str, 'ctx, R>: RefUnwindSafe,
TempRef<'str, 'ctx, R>: RefUnwindSafe,
FunctionRef<'str, 'ctx, R>: RefUnwindSafe,
impl<'str, 'ctx, R> Send for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: Send,
BlockRef<'str, 'ctx, R>: Send,
BlockParamRef<'str, 'ctx, R>: Send,
TempRef<'str, 'ctx, R>: Send,
FunctionRef<'str, 'ctx, R>: Send,
impl<'str, 'ctx, R> Sync for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: Sync,
BlockRef<'str, 'ctx, R>: Sync,
BlockParamRef<'str, 'ctx, R>: Sync,
TempRef<'str, 'ctx, R>: Sync,
FunctionRef<'str, 'ctx, R>: Sync,
impl<'str, 'ctx, R> Unpin for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: Unpin,
BlockRef<'str, 'ctx, R>: Unpin,
BlockParamRef<'str, 'ctx, R>: Unpin,
TempRef<'str, 'ctx, R>: Unpin,
FunctionRef<'str, 'ctx, R>: Unpin,
impl<'str, 'ctx, R> UnsafeUnpin for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: UnsafeUnpin,
BlockRef<'str, 'ctx, R>: UnsafeUnpin,
BlockParamRef<'str, 'ctx, R>: UnsafeUnpin,
TempRef<'str, 'ctx, R>: UnsafeUnpin,
FunctionRef<'str, 'ctx, R>: UnsafeUnpin,
impl<'str, 'ctx, R> UnwindSafe for ValueRef<'str, 'ctx, R>where
InstructionRef<'str, 'ctx, R>: UnwindSafe,
BlockRef<'str, 'ctx, R>: UnwindSafe,
BlockParamRef<'str, 'ctx, R>: UnwindSafe,
TempRef<'str, 'ctx, R>: UnwindSafe,
FunctionRef<'str, 'ctx, R>: UnwindSafe,
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