pub struct Variable(pub u32);
Expand description
A variable, encoded as 32 bit unsigned integer.
Tuple Fields§
§0: u32
Implementations§
Source§impl Variable
impl Variable
pub fn new(value: u32) -> Variable
Sourcepub fn array_size_for_variables(self) -> usize
pub fn array_size_for_variables(self) -> usize
The size of an array that can contain variables up to and including
self
.
Sourcepub fn array_size_for_literals(self) -> usize
pub fn array_size_for_literals(self) -> usize
The size of an array that can contain literals up to and including
-self.literal()
.
Trait Implementations§
Source§impl Ord for Variable
impl Ord for Variable
Source§impl PartialOrd for Variable
impl PartialOrd for Variable
impl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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> HeapSpace for Twhere
T: Copy,
impl<T> HeapSpace for Twhere
T: Copy,
Source§fn heap_space(&self) -> usize
fn heap_space(&self) -> usize
The number of bytes allocated on the heap that this owns.