pub struct Movem {
pub from: End,
pub to: End,
pub count: usize,
pub exactly: bool,
pub order: Order,
}Expand description
Everything LMOVEM needs to know beyond the two keys.
The five of them travel together because they are all parsed out of one command and none of them means anything without the others. Keeping them in a struct is also what stops the call from being eight positional arguments where three of them are ends and flags that read the same at the call site.
Named after the command rather than called Block, which is what it holds,
because BLMOVEM puts one of these inside the structure the blocking layer
already calls a block and one of those two names had to go.
Fields§
§from: EndThe end of the source to take from.
to: EndThe end of the destination to put on.
count: usizeHow many to move. The 5 argument form of the command means one.
exactly: boolEXACTLY rather than COUNT: all of them or none of them.
order: OrderWhich order they are left in.