pub struct ColumnOracle { /* private fields */ }Expand description
A “column oracle” that can predict alignment positions.
Implementations§
Source§impl ColumnOracle
impl ColumnOracle
pub fn new(tab_width: usize) -> Self
pub fn add_reference(&mut self, col: usize)
pub fn next_alignment(&self, current: usize) -> usize
pub fn is_at_reference(&self, col: usize) -> bool
Auto Trait Implementations§
impl Freeze for ColumnOracle
impl RefUnwindSafe for ColumnOracle
impl Send for ColumnOracle
impl Sync for ColumnOracle
impl Unpin for ColumnOracle
impl UnsafeUnpin for ColumnOracle
impl UnwindSafe for ColumnOracle
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