Struct sputnikvm::Valids
[−]
[src]
pub struct Valids(_);
Mapping of valid jump destination from code.
Methods
impl Valids
[src]
fn new(code: &[u8]) -> Self
[src]
Create a new valid mapping from given code bytes.
fn len(&self) -> usize
[src]
Get the length of the valid mapping. This is the same as the code bytes.
fn is_valid(&self, position: usize) -> bool
[src]
Returns true
if the position is a valid jump destination. If
not, returns false
.