pub enum InputSource {
StdIn,
SecretIn,
}
Variants§
Implementations§
Source§impl InputSource
impl InputSource
Sourcepub const fn instruction_name(&self) -> &str
pub const fn instruction_name(&self) -> &str
The name of the instruction that reads from this input source
Sourcepub fn label_friendly_name(&self) -> &str
pub fn label_friendly_name(&self) -> &str
Return a string identifiying the input source and usable as assembly label
Sourcepub fn read_words(&self, n: usize) -> Vec<LabelledInstruction>
pub fn read_words(&self, n: usize) -> Vec<LabelledInstruction>
Return the code used to read n
words from the input source.
BEFORE: _
AFTER: _ [read_words; n]
Trait Implementations§
Source§impl Clone for InputSource
impl Clone for InputSource
Source§fn clone(&self) -> InputSource
fn clone(&self) -> InputSource
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 InputSource
impl Debug for InputSource
Source§impl Display for InputSource
impl Display for InputSource
Source§impl Hash for InputSource
impl Hash for InputSource
Source§impl PartialEq for InputSource
impl PartialEq for InputSource
impl Copy for InputSource
impl Eq for InputSource
impl StructuralPartialEq for InputSource
Auto Trait Implementations§
impl Freeze for InputSource
impl RefUnwindSafe for InputSource
impl Send for InputSource
impl Sync for InputSource
impl Unpin for InputSource
impl UnwindSafe for InputSource
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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