pub enum Disp {
Const(i32),
Sym(SymId),
}Expand description
Holds a memory displacement: a folded constant or a frontend-owned symbol.
Variants§
Const(i32)
Sym(SymId)
Holds {IDENT} in the offlineasm text template. onlineasm and
RISC-style backends that must fold it reject this variant.
Implementations§
Trait Implementations§
impl Copy for Disp
impl Eq for Disp
impl StructuralPartialEq for Disp
Auto Trait Implementations§
impl Freeze for Disp
impl RefUnwindSafe for Disp
impl Send for Disp
impl Sync for Disp
impl Unpin for Disp
impl UnsafeUnpin for Disp
impl UnwindSafe for Disp
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