pub struct ConsControl {
pub v: ExprDesc,
pub t: ExprDesc,
pub nh: i32,
pub na: i32,
pub tostore: i32,
}Expand description
C: ConsControl — state for parsing a table constructor.
PORT NOTE: C stores expdesc *t as a pointer to the caller’s expdesc.
Rust stores a copy of the table descriptor; callers must sync back
if they mutate it. Phase B may restructure.
Fields§
§v: ExprDescC: v — last list item read
t: ExprDescC: *t — table descriptor (copied; see PORT NOTE above)
nh: i32C: nh — total number of record elements
na: i32C: na — number of array elements already stored
tostore: i32C: tostore — array elements pending store
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsControl
impl !RefUnwindSafe for ConsControl
impl !Send for ConsControl
impl !Sync for ConsControl
impl Unpin for ConsControl
impl UnsafeUnpin for ConsControl
impl !UnwindSafe for ConsControl
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