pub struct EtaStateMachine { /* private fields */ }Expand description
Eta-expansion state machine for iterative expansion.
Implementations§
Source§impl EtaStateMachine
impl EtaStateMachine
Sourcepub fn start(&mut self, name: &str, field_count: u32)
pub fn start(&mut self, name: &str, field_count: u32)
Start expansion for a given structure and field count.
Sourcepub fn process_field(&mut self) -> bool
pub fn process_field(&mut self) -> bool
Record one field being processed.
Sourcepub fn is_expanding(&self) -> bool
pub fn is_expanding(&self) -> bool
Return whether currently expanding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EtaStateMachine
impl RefUnwindSafe for EtaStateMachine
impl Send for EtaStateMachine
impl Sync for EtaStateMachine
impl Unpin for EtaStateMachine
impl UnsafeUnpin for EtaStateMachine
impl UnwindSafe for EtaStateMachine
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