pub struct Record {
pub code: u64,
pub operands: Vec<u64>,
pub blob: Option<Vec<u8>>,
pub at: usize,
pub end: usize,
}Expand description
A record: its code, operands and, for blob abbreviations, the blob.
Fields§
§code: u64The record code, whose meaning the block’s id gives.
operands: Vec<u64>The operands, in order (an abbreviated array’s elements are flattened into them).
blob: Option<Vec<u8>>The blob of a record whose abbreviation ends in one.
at: usizeBit offset of the record in the stream (bit 0 is the first bit of the BC magic), for error locations.
end: usizeBit offset just past the record: where the next element (record, abbreviation definition, block or END_BLOCK)
starts, so the record’s bits are at..end.
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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