enum Byte {
Undef,
Concrete(u8),
Pointer {
bid: Option<usize>,
offset: isize,
index: usize,
},
}Variants§
Implementations§
Source§impl Byte
impl Byte
fn concrete(byte: u8) -> Self
fn pointer(bid: Option<usize>, offset: isize, index: usize) -> Self
fn get_concrete(&self) -> Option<u8>
fn get_pointer(&self) -> Option<(Option<usize>, isize, usize)>
fn block_from_dtype( dtype: &Dtype, structs: &HashMap<String, Option<Dtype>>, ) -> Vec<Self>
fn u128_to_bytes(value: u128, size: usize) -> Vec<u8>
fn bytes_to_u128(bytes: &[u8], is_signed: bool) -> u128
fn bytes_to_value<'b, I>(
bytes: &mut I,
dtype: &Dtype,
structs: &HashMap<String, Option<Dtype>>,
) -> Result<Value, InterpreterError>where
I: Iterator<Item = &'b Self>,
fn value_to_bytes( value: &Value, structs: &HashMap<String, Option<Dtype>>, ) -> Vec<Self>
Trait Implementations§
impl Eq for Byte
impl StructuralPartialEq for Byte
Auto Trait Implementations§
impl Freeze for Byte
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more