pub struct LineSet { /* private fields */ }
Expand description
A set of line interrupts and their target mappings.
Implementations§
Source§impl LineSet
impl LineSet
Sourcepub fn add_target(
&self,
source_range: RangeInclusive<u32>,
target_start: u32,
debug_label: impl Into<Arc<str>>,
target: Arc<dyn LineSetTarget>,
)
pub fn add_target( &self, source_range: RangeInclusive<u32>, target_start: u32, debug_label: impl Into<Arc<str>>, target: Arc<dyn LineSetTarget>, )
Adds a target mapping to the set.
The mapping is over a portion of the line set as specified by
source_range
, and it is mapped into the target’s vector space starting
at target_start
.
Sourcepub fn new_line(
&self,
vector: u32,
debug_label: impl Into<Cow<'static, str>>,
) -> Result<LineInterrupt, NewLineError>
pub fn new_line( &self, vector: u32, debug_label: impl Into<Cow<'static, str>>, ) -> Result<LineInterrupt, NewLineError>
Adds a new line interrupt to the set.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LineSet
impl !RefUnwindSafe for LineSet
impl Send for LineSet
impl Sync for LineSet
impl Unpin for LineSet
impl !UnwindSafe for LineSet
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