Imm

Struct Imm 

Source
pub struct Imm {
    pub tree: Expression,
}
Expand description

An immediate value for push instructions.

Fields§

§tree: Expression

An infix tree representing a mathematical expression.

Implementations§

Source§

impl Imm

Source

pub fn with_label<S: Into<String>>(s: S) -> Self

Construct an Imm with a label.

Source

pub fn with_variable<S: Into<String>>(s: S) -> Self

Construct an Imm with a variable.

Source

pub fn with_expression(e: Expression) -> Self

Construct an Imm with an expression.

Source

pub fn with_macro(m: ExpressionMacroInvocation) -> Self

Construct an Imm with an expression macro.

Trait Implementations§

Source§

impl Clone for Imm

Source§

fn clone(&self) -> Imm

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Imm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Imm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<[u8; 1]> for Imm

Source§

fn from(konst: [u8; 1]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 10]> for Imm

Source§

fn from(konst: [u8; 10]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 11]> for Imm

Source§

fn from(konst: [u8; 11]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 12]> for Imm

Source§

fn from(konst: [u8; 12]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 13]> for Imm

Source§

fn from(konst: [u8; 13]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 14]> for Imm

Source§

fn from(konst: [u8; 14]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 15]> for Imm

Source§

fn from(konst: [u8; 15]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 16]> for Imm

Source§

fn from(konst: [u8; 16]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 17]> for Imm

Source§

fn from(konst: [u8; 17]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 18]> for Imm

Source§

fn from(konst: [u8; 18]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 19]> for Imm

Source§

fn from(konst: [u8; 19]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 2]> for Imm

Source§

fn from(konst: [u8; 2]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 20]> for Imm

Source§

fn from(konst: [u8; 20]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 21]> for Imm

Source§

fn from(konst: [u8; 21]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 22]> for Imm

Source§

fn from(konst: [u8; 22]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 23]> for Imm

Source§

fn from(konst: [u8; 23]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 24]> for Imm

Source§

fn from(konst: [u8; 24]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 25]> for Imm

Source§

fn from(konst: [u8; 25]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 26]> for Imm

Source§

fn from(konst: [u8; 26]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 27]> for Imm

Source§

fn from(konst: [u8; 27]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 28]> for Imm

Source§

fn from(konst: [u8; 28]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 29]> for Imm

Source§

fn from(konst: [u8; 29]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 3]> for Imm

Source§

fn from(konst: [u8; 3]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 30]> for Imm

Source§

fn from(konst: [u8; 30]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 31]> for Imm

Source§

fn from(konst: [u8; 31]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 32]> for Imm

Source§

fn from(konst: [u8; 32]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 4]> for Imm

Source§

fn from(konst: [u8; 4]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 5]> for Imm

Source§

fn from(konst: [u8; 5]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 6]> for Imm

Source§

fn from(konst: [u8; 6]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 7]> for Imm

Source§

fn from(konst: [u8; 7]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 8]> for Imm

Source§

fn from(konst: [u8; 8]) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 9]> for Imm

Source§

fn from(konst: [u8; 9]) -> Self

Converts to this type from the input type.
Source§

impl From<Expression> for Imm

Source§

fn from(tree: Expression) -> Self

Converts to this type from the input type.
Source§

impl From<Terminal> for Imm

Source§

fn from(terminal: Terminal) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for Imm

Source§

fn from(konst: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for Imm

Source§

fn from(x: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Imm

Source§

fn from(x: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Imm

Source§

fn from(x: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Imm

Source§

fn from(x: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Imm

Source§

fn from(x: u8) -> Self

Converts to this type from the input type.
Source§

impl Hash for Imm

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Imm

Source§

fn cmp(&self, other: &Imm) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Imm

Source§

fn eq(&self, other: &Imm) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Imm

Source§

fn partial_cmp(&self, other: &Imm) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<&[u8]> for Imm

Source§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
Source§

fn try_from(x: &[u8]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Eq for Imm

Source§

impl<const N: usize> Immediate<N> for Imm

Source§

impl StructuralPartialEq for Imm

Auto Trait Implementations§

§

impl Freeze for Imm

§

impl RefUnwindSafe for Imm

§

impl Send for Imm

§

impl Sync for Imm

§

impl Unpin for Imm

§

impl UnwindSafe for Imm

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V