pub struct BlockIdentifier(usize);
Expand description
The TX-2 Users Handbook describes a section of source code beginning with an optional origin as a “block”. See, for example section 6-2.5 and section 6-3.4 (specifically, page 6-23).
This is not the same way in which “block” is used in more modern programming languages (for example, C), where a block is normally associated with a scope. While TX-2’s assembler does have scopes (in macro bodies) these are are a concept.
We assign blocks unique identifiers, which are values of type
BlockIdentifier
.
Tuple Fields§
§0: usize
Implementations§
Source§impl BlockIdentifier
impl BlockIdentifier
pub fn previous_block(self) -> Option<BlockIdentifier>
Trait Implementations§
Source§impl Clone for BlockIdentifier
impl Clone for BlockIdentifier
Source§fn clone(&self) -> BlockIdentifier
fn clone(&self) -> BlockIdentifier
Returns a duplicate 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 BlockIdentifier
impl Debug for BlockIdentifier
Source§impl Display for BlockIdentifier
impl Display for BlockIdentifier
Source§impl From<BlockIdentifier> for usize
impl From<BlockIdentifier> for usize
Source§fn from(value: BlockIdentifier) -> usize
fn from(value: BlockIdentifier) -> usize
Converts to this type from the input type.
Source§impl From<usize> for BlockIdentifier
impl From<usize> for BlockIdentifier
Source§impl Ord for BlockIdentifier
impl Ord for BlockIdentifier
Source§fn cmp(&self, other: &BlockIdentifier) -> Ordering
fn cmp(&self, other: &BlockIdentifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlockIdentifier
impl PartialEq for BlockIdentifier
Source§impl PartialOrd for BlockIdentifier
impl PartialOrd for BlockIdentifier
impl Copy for BlockIdentifier
impl Eq for BlockIdentifier
impl StructuralPartialEq for BlockIdentifier
Auto Trait Implementations§
impl Freeze for BlockIdentifier
impl RefUnwindSafe for BlockIdentifier
impl Send for BlockIdentifier
impl Sync for BlockIdentifier
impl Unpin for BlockIdentifier
impl UnwindSafe for BlockIdentifier
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef
].