Enum pdl_compiler::backends::intermediate::ComputedValue
source · pub enum ComputedValue<'a> {
Constant(usize),
CountStructsUpToSize {
base_id: ComputedOffsetId<'a>,
size: ComputedValueId<'a>,
struct_type: &'a str,
},
SizeOfNStructs {
base_id: ComputedOffsetId<'a>,
n: ComputedValueId<'a>,
struct_type: &'a str,
},
Product(ComputedValueId<'a>, ComputedValueId<'a>),
Divide(ComputedValueId<'a>, ComputedValueId<'a>),
Difference(ComputedOffsetId<'a>, ComputedOffsetId<'a>),
ValueAt {
offset: ComputedOffsetId<'a>,
width: usize,
},
}
Variants§
Constant(usize)
CountStructsUpToSize
SizeOfNStructs
Product(ComputedValueId<'a>, ComputedValueId<'a>)
Divide(ComputedValueId<'a>, ComputedValueId<'a>)
Difference(ComputedOffsetId<'a>, ComputedOffsetId<'a>)
ValueAt
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ComputedValue<'a>
impl<'a> Send for ComputedValue<'a>
impl<'a> Sync for ComputedValue<'a>
impl<'a> Unpin for ComputedValue<'a>
impl<'a> UnwindSafe for ComputedValue<'a>
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