Enum aluvm::isa::SplitFlag [−][src]
pub enum SplitFlag { NoneNone, NoneNoneOnEmpty, NoneZeroOnEmpty, ZeroZeroOnEmpty, CutNone, CutZero, ZeroNone, ZeroZero, }
Expand description
Flags for bytestring split operation.
If offset exceeds the length of the string in the register, than the behaviour of
crate::isa::BytesOp::Splt
op code is defined by this flag. Please check its description
for more details.
Variants
If the offset is equal to zero, exceeds or equal to the length of the source string sets
first and second destination register to None
; st0
to false
.
Matches case (1) in crate::isa::BytesOp::Splt
description
If the offset is equal to zero, sets first destination register to None
, second is set to
None
only if the string in the source register is empty; st0
in both cases is set
to false
.
Matches case (2) in crate::isa::BytesOp::Splt
description
If the offset is equal to zero, sets first destination register to None
, second is set to
an empty string if the string in the source register is empty; st0
in both cases is
set to false
.
Matches case (3) in crate::isa::BytesOp::Splt
description
If the offset is equal to zero, sets first destination register to empty string, second is
set to an empty string if the string in the source register is empty; st0
value
remain unchanged.
Matches case (4) in crate::isa::BytesOp::Splt
description
If the offset exceeds the length of the source string sets the first destination register
to the source string (<=offset in len) and second to None
; st0
value is set to
false
.
Matches case (5) in crate::isa::BytesOp::Splt
description
If the offset exceeds the length of the source string sets the first destination register
to the source string (<=offset in len) and second to zero-length string; st0
value is
set to false
.
Matches case (6) in crate::isa::BytesOp::Splt
description
If the offset exceeds the length of the source string sets the first destination register
to zero-length string and second to None
; st0
value is set to false
.
Matches case (7) in crate::isa::BytesOp::Splt
description
If the offset exceeds the length of the source string sets both the first and second
destination registers to zero-length string; st0
value is set to false
.
Matches case (8) in crate::isa::BytesOp::Splt
description
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SplitFlag
impl UnwindSafe for SplitFlag
Blanket Implementations
Mutably borrows from an owned value. Read more