pub struct Bytes(pub u32);Expand description
Space, in bytes of machine code, exact and from the encoder.
Exact rather than estimated because it can be: the encoder knows how long an instruction is and asking it is cheaper than maintaining a second table that drifts from it. That is also why there is no infinity here. An instruction that cannot be encoded is not an instruction with a very large size, it is an instruction the selector must not have chosen, and it is caught where it is chosen.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl AddAssign for Bytes
impl AddAssign for Bytes
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl Capability for Bytes
impl Capability for Bytes
Source§fn impossible(&self) -> Vec<bool>
fn impossible(&self) -> Vec<bool>
One entry per costed lane, saying whether that lane is impossible.
impl Copy for Bytes
impl Eq for Bytes
Source§impl Ord for Bytes
impl Ord for Bytes
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Bytes
impl PartialOrd for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
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