pub enum TooWide {
Slot {
slot: Slot,
},
Displacement {
from: Pc,
to: Pc,
},
}Expand description
An operand that does not fit the field ADR 0041 gives it.
Variants§
Slot
A slot a sixteen-bit operand cannot name.
crate::lower refuses a frame of more than
MAX_FRAME_WORDS with a diagnostic at the
declaration, so a program that reached the encoder cannot hold one.
This is the assertion that says so.
Displacement
A branch whose displacement is not an i64.
Unreachable while Pc is a u32: every representable pair of
program counters has a representable difference. It is checked so that
a wider Pc is a refusal here rather than a wrong jump somewhere else.
Trait Implementations§
impl Copy for TooWide
impl Eq for TooWide
impl StructuralPartialEq for TooWide
Auto Trait Implementations§
impl Freeze for TooWide
impl RefUnwindSafe for TooWide
impl Send for TooWide
impl Sync for TooWide
impl Unpin for TooWide
impl UnsafeUnpin for TooWide
impl UnwindSafe for TooWide
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.