Remove layout::Cursor from the legalizer::split API.
We still use the cursor internally, but don't require callers to use it too.
This commit is contained in:
@@ -709,6 +709,15 @@ pub trait CursorBase {
|
||||
/// Borrow a mutable reference to the function layout that this cursor is navigating.
|
||||
fn layout_mut(&mut self) -> &mut Layout;
|
||||
|
||||
/// Rebuild this cursor positioned at `pos`.
|
||||
fn at_position(mut self, pos: CursorPosition) -> Self
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
self.set_position(pos);
|
||||
self
|
||||
}
|
||||
|
||||
/// Rebuild this cursor positioned at `inst`.
|
||||
///
|
||||
/// This is intended to be used as a builder method:
|
||||
|
||||
Reference in New Issue
Block a user