Enum haybale::SolutionValue
source · pub enum SolutionValue {
I8(i8),
I16(i16),
I32(i32),
I64(i64),
Ptr(u64),
}
Expand description
A simple enum describing either an integer value or a pointer
Variants§
Implementations§
source§impl SolutionValue
impl SolutionValue
pub fn unwrap_to_i8(self) -> i8
pub fn unwrap_to_i16(self) -> i16
pub fn unwrap_to_i32(self) -> i32
pub fn unwrap_to_i64(self) -> i64
pub fn unwrap_to_ptr(self) -> u64
Trait Implementations§
source§impl Clone for SolutionValue
impl Clone for SolutionValue
source§fn clone(&self) -> SolutionValue
fn clone(&self) -> SolutionValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SolutionValue
impl Debug for SolutionValue
source§impl PartialEq for SolutionValue
impl PartialEq for SolutionValue
source§fn eq(&self, other: &SolutionValue) -> bool
fn eq(&self, other: &SolutionValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SolutionValue
impl Eq for SolutionValue
impl StructuralEq for SolutionValue
impl StructuralPartialEq for SolutionValue
Auto Trait Implementations§
impl RefUnwindSafe for SolutionValue
impl Send for SolutionValue
impl Sync for SolutionValue
impl Unpin for SolutionValue
impl UnwindSafe for SolutionValue
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