Struct assembler::InstructionStreamHints
source · pub struct InstructionStreamHints {
pub number_of_labels: usize,
pub number_of_8_bit_jumps: usize,
pub number_of_32_bit_jumps: usize,
pub number_of_emitted_labels: usize,
}
Expand description
Hints to use when creating an instruction stream.
Also can be retrieved using InstructionStream.hints_for_next_instance()
, to fine-tune future instances to avoid reallocations.
Fields
number_of_labels: usize
Number of labels.
number_of_8_bit_jumps: usize
Number of 8-bit jumps.
number_of_32_bit_jumps: usize
Number of 32-bit jumps.
number_of_emitted_labels: usize
Number of emitted labels.
Implementations
Trait Implementations
sourceimpl Clone for InstructionStreamHints
impl Clone for InstructionStreamHints
sourcefn clone(&self) -> InstructionStreamHints
fn clone(&self) -> InstructionStreamHints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InstructionStreamHints
impl Debug for InstructionStreamHints
sourceimpl Default for InstructionStreamHints
impl Default for InstructionStreamHints
sourceimpl Hash for InstructionStreamHints
impl Hash for InstructionStreamHints
sourceimpl Ord for InstructionStreamHints
impl Ord for InstructionStreamHints
sourcefn cmp(&self, other: &InstructionStreamHints) -> Ordering
fn cmp(&self, other: &InstructionStreamHints) -> Ordering
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<InstructionStreamHints> for InstructionStreamHints
impl PartialEq<InstructionStreamHints> for InstructionStreamHints
sourcefn eq(&self, other: &InstructionStreamHints) -> bool
fn eq(&self, other: &InstructionStreamHints) -> bool
sourceimpl PartialOrd<InstructionStreamHints> for InstructionStreamHints
impl PartialOrd<InstructionStreamHints> for InstructionStreamHints
sourcefn partial_cmp(&self, other: &InstructionStreamHints) -> Option<Ordering>
fn partial_cmp(&self, other: &InstructionStreamHints) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for InstructionStreamHints
impl StructuralEq for InstructionStreamHints
impl StructuralPartialEq for InstructionStreamHints
Auto Trait Implementations
impl RefUnwindSafe for InstructionStreamHints
impl Send for InstructionStreamHints
impl Sync for InstructionStreamHints
impl Unpin for InstructionStreamHints
impl UnwindSafe for InstructionStreamHints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more