pub struct Site<Id>where
Id: SiteId,{
pub prog_id: Id,
pub offset: u16,
}Expand description
Location inside the instruction sequence which can be executed by the core.
This type is required in addition to crate::LibSite in order to achieve proper abstraction,
layering, and separation of concerns: the core must know nothing about library structure.
Fields§
§prog_id: IdIdentifier of the program.
offset: u16Offset in the code segment within the program.
Implementations§
Trait Implementations§
Source§impl<Id> Ord for Site<Id>
impl<Id> Ord for Site<Id>
Source§impl<Id> PartialOrd for Site<Id>where
Id: PartialOrd + SiteId,
impl<Id> PartialOrd for Site<Id>where
Id: PartialOrd + SiteId,
impl<Id> Copy for Site<Id>
impl<Id> Eq for Site<Id>
impl<Id> StructuralPartialEq for Site<Id>where
Id: SiteId,
Auto Trait Implementations§
impl<Id> Freeze for Site<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for Site<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Site<Id>where
Id: Send,
impl<Id> Sync for Site<Id>where
Id: Sync,
impl<Id> Unpin for Site<Id>where
Id: Unpin,
impl<Id> UnwindSafe for Site<Id>where
Id: UnwindSafe,
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.