pub struct ProtectedRegion {
pub start: CodeCursor,
pub end_index: usize,
pub handler: CodeCursor,
}Expand description
A validated protected region whose positions can only be valid cursors.
Fields§
§start: CodeCursorFirst protected instruction.
end_index: usizeFirst instruction after the region; equal to instruction_count at code end.
handler: CodeCursorValidated handler entry.
Trait Implementations§
Source§impl Clone for ProtectedRegion
impl Clone for ProtectedRegion
Source§fn clone(&self) -> ProtectedRegion
fn clone(&self) -> ProtectedRegion
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 moreimpl Copy for ProtectedRegion
Source§impl Debug for ProtectedRegion
impl Debug for ProtectedRegion
impl Eq for ProtectedRegion
Source§impl PartialEq for ProtectedRegion
impl PartialEq for ProtectedRegion
impl StructuralPartialEq for ProtectedRegion
Auto Trait Implementations§
impl Freeze for ProtectedRegion
impl RefUnwindSafe for ProtectedRegion
impl Send for ProtectedRegion
impl Sync for ProtectedRegion
impl Unpin for ProtectedRegion
impl UnsafeUnpin for ProtectedRegion
impl UnwindSafe for ProtectedRegion
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