pub struct BytecodeRes {
pub bytes: BytecodeSegments,
pub spans: Vec<Option<(usize, usize)>>,
pub label_indices: LabelIndices,
pub unmatched_jumps: Jumps,
pub table_instances: Jumps,
pub utilized_tables: Vec<TableDefinition>,
pub embedded_tables: BTreeMap<String, usize>,
}Expand description
Result type for huff_codegen’s
recurse_bytecode
Fields§
§bytes: BytecodeSegmentsResulting bytes
spans: Vec<Option<(usize, usize)>>Source spans for each bytecode segment (parallel to bytes vec)
label_indices: LabelIndicesJump Indices
unmatched_jumps: JumpsUnmatched Jumps
table_instances: JumpsTable Instances
utilized_tables: Vec<TableDefinition>Utilized Tables
embedded_tables: BTreeMap<String, usize>Embedded Tables (table name -> first embedding offset)
Trait Implementations§
Source§impl Clone for BytecodeRes
impl Clone for BytecodeRes
Source§impl Debug for BytecodeRes
impl Debug for BytecodeRes
Source§impl Default for BytecodeRes
impl Default for BytecodeRes
Source§impl Display for BytecodeRes
impl Display for BytecodeRes
impl Eq for BytecodeRes
Source§impl Ord for BytecodeRes
impl Ord for BytecodeRes
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 PartialEq for BytecodeRes
impl PartialEq for BytecodeRes
Source§impl PartialOrd for BytecodeRes
impl PartialOrd for BytecodeRes
impl StructuralPartialEq for BytecodeRes
Auto Trait Implementations§
impl Freeze for BytecodeRes
impl RefUnwindSafe for BytecodeRes
impl Send for BytecodeRes
impl Sync for BytecodeRes
impl Unpin for BytecodeRes
impl UnsafeUnpin for BytecodeRes
impl UnwindSafe for BytecodeRes
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 168 bytes