pub enum TargetLocation<Id> {
Instruction(Id),
Byte {
source: SourceId,
offset: usize,
},
Token {
source: SourceId,
index: usize,
},
}Expand description
An unresolved branch destination supplied by a code preparer.
Variants§
Instruction(Id)
A stable instruction identity.
Byte
An exact byte boundary in a kernel-identified source.
Token
An exact token boundary in a kernel-identified source.
Trait Implementations§
Source§impl<Id: Clone> Clone for TargetLocation<Id>
impl<Id: Clone> Clone for TargetLocation<Id>
Source§fn clone(&self) -> TargetLocation<Id>
fn clone(&self) -> TargetLocation<Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Id: Debug> Debug for TargetLocation<Id>
impl<Id: Debug> Debug for TargetLocation<Id>
impl<Id: Eq> Eq for TargetLocation<Id>
Source§impl<Id: PartialEq> PartialEq for TargetLocation<Id>
impl<Id: PartialEq> PartialEq for TargetLocation<Id>
impl<Id: PartialEq> StructuralPartialEq for TargetLocation<Id>
Auto Trait Implementations§
impl<Id> Freeze for TargetLocation<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for TargetLocation<Id>where
Id: RefUnwindSafe,
impl<Id> Send for TargetLocation<Id>where
Id: Send,
impl<Id> Sync for TargetLocation<Id>where
Id: Sync,
impl<Id> Unpin for TargetLocation<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for TargetLocation<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for TargetLocation<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