[−][src]Enum ni::common::Operand
Variants
Loc(UWord)
Local variable.
Expressed as x
or loc(12)
.
Ind(UWord)
Indirection access.
Expressed as *x
or ind(12)
.
Ret(UWord)
Return variable.
Expressed as ^x
or ret(12)
.
Val(UWord)
Constant value.
Expressed as 12
or val(12)
.
Ref(UWord)
Variable reference.
Expressed as &x
or ref(12)
.
Glb(UWord)
Global variable.
Expressed as .x
or glb(12)
.
Empty.
Expressed as emp
.
Implementations
impl Operand
[src]
pub fn new(val: UWord, kind: u8) -> Result<Self, UndefinedOperation>
[src]
pub fn as_byte(&self) -> u8
[src]
pub fn get(self) -> Option<UWord>
[src]
pub fn map<F>(self, f: F) -> Self where
F: FnOnce(UWord) -> UWord,
[src]
F: FnOnce(UWord) -> UWord,
Trait Implementations
impl Clone for Operand
[src]
impl Copy for Operand
[src]
impl Debug for Operand
[src]
impl Decode<()> for Operand
[src]
type Err = DecodeError
fn decode<R>(bytes: &mut R, _: ()) -> Result<Self, Self::Err> where
R: Read,
[src]
R: Read,
impl Encode for Operand
[src]
type Err = EncodeError
fn encode<W>(&self, buf: &mut W) -> Result<(), Self::Err> where
W: Write,
[src]
W: Write,
impl Eq for Operand
[src]
impl From<u8> for Operand
[src]
impl PartialEq<Operand> for Operand
[src]
impl StructuralEq for Operand
[src]
impl StructuralPartialEq for Operand
[src]
Auto Trait Implementations
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,