pub struct SimModeScan(/* private fields */);Expand description
SSCN — the simulation-mode scan field (DBF_MENU, menu(menuScan)).
The same domain as SCAN — it is the same menu — so it is the same type,
and an out-of-menu index is carried, not erased. Its dbd default is the
out-of-range 65535 (field(SSCN,DBF_MENU){ menu(menuScan) initial("65535") }, identical across all 21 records that carry SSCN), which C reads as “not
set — keep scanning at SCAN while in simulation mode”.
That sentinel is 65535 and only 65535. Both recGbl helpers test it
literally —
/* recGbl.c: recGblSaveSimm and recGblCheckSimm both open with */
if (*psscn == USHRT_MAX) return;— so an SSCN of, say, 10 is NOT “unset”: C performs the swap, lands the
illegal 10 in SCAN, and scanAdd then leaves the record in no scan list.
Treating every illegal index as the sentinel would be a different behaviour
from C, so the distinction is kept.
Implementations§
Trait Implementations§
Source§impl Clone for SimModeScan
impl Clone for SimModeScan
Source§fn clone(&self) -> SimModeScan
fn clone(&self) -> SimModeScan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimModeScan
Source§impl Debug for SimModeScan
impl Debug for SimModeScan
Source§impl Default for SimModeScan
impl Default for SimModeScan
Source§impl Display for SimModeScan
impl Display for SimModeScan
impl Eq for SimModeScan
Source§impl PartialEq for SimModeScan
impl PartialEq for SimModeScan
impl StructuralPartialEq for SimModeScan
Auto Trait Implementations§
impl Freeze for SimModeScan
impl RefUnwindSafe for SimModeScan
impl Send for SimModeScan
impl Sync for SimModeScan
impl Unpin for SimModeScan
impl UnsafeUnpin for SimModeScan
impl UnwindSafe for SimModeScan
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.