pub enum Value {
Number(Number),
Expr(Expr),
}
Expand description
A dynamically or statically computed value.
To produce valid binary it is mostly only important to know the correct width of the output but
the value itself can be computed by the caller. This allows freedom on parsing without
requiring the assembler core (this library) to implement an arbitrary expression evaluator. In
particular, the evaluation can even be further delayed by the caller and left to rustc
.
Variants§
Implementations§
Trait Implementations§
Source§impl From<Value> for JumpOffset
impl From<Value> for JumpOffset
Source§fn from(val: Value) -> JumpOffset
fn from(val: Value) -> JumpOffset
Converts to this type from the input type.
impl Copy for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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