Skip to main content

Value

Trait Value 

Source
pub trait Value<'str, 'ctx>: Display {
    // Required methods
    fn id(&self) -> ValueId;
    fn size(&self) -> usize;
}
Expand description

Trait implemented by all typed value reference types.

Provides a uniform interface to a value’s ValueId and its size in bytes. Terminators and non-data values (blocks, functions) report size() == 0.

Required Methods§

Source

fn id(&self) -> ValueId

The context-unique identifier for this value.

Source

fn size(&self) -> usize

The size of this value’s output in bytes, or 0 for non-data values (terminators, blocks, functions).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'ctx, 'str> Value<'str, 'ctx> for FunctionMutRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for BlockMutRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for BlockParamMutRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for BytesRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for InstructionMutRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for LiteralRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for PoisonRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for VarnodeMutRef<'str, 'ctx>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for VarnodeRef<'str, 'ctx>

Source§

impl<'str: 'ctx, 'ctx, R> Value<'str, 'ctx> for BlockParamRef<'str, 'ctx, R>
where R: QCodeView<'ctx, 'str>,

Source§

impl<'str: 'ctx, 'ctx, R> Value<'str, 'ctx> for BlockRef<'str, 'ctx, R>
where R: QCodeView<'ctx, 'str>,

Source§

impl<'str: 'ctx, 'ctx, R> Value<'str, 'ctx> for FunctionRef<'str, 'ctx, R>
where R: QCodeView<'ctx, 'str>,

Source§

impl<'str: 'ctx, 'ctx, R> Value<'str, 'ctx> for InstructionRef<'str, 'ctx, R>
where R: QCodeView<'ctx, 'str>,

Source§

impl<'str: 'ctx, 'ctx, R> Value<'str, 'ctx> for TempRef<'str, 'ctx, R>
where R: QCodeView<'ctx, 'str>,

Source§

impl<'str: 'ctx, 'ctx, R> Value<'str, 'ctx> for ValueRef<'str, 'ctx, R>
where R: QCodeView<'ctx, 'str>,