pub struct IndentDelta {
pub line: usize,
pub before: usize,
pub after: usize,
}Fields§
§line: usize§before: usize§after: usizeImplementations§
Source§impl IndentDelta
impl IndentDelta
pub fn compute_all(src: &str, tab_width: usize) -> Vec<IndentDelta>
pub fn is_increase(&self) -> bool
pub fn is_decrease(&self) -> bool
pub fn change(&self) -> i64
Trait Implementations§
Source§impl Clone for IndentDelta
impl Clone for IndentDelta
Source§fn clone(&self) -> IndentDelta
fn clone(&self) -> IndentDelta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndentDelta
impl Debug for IndentDelta
Source§impl PartialEq for IndentDelta
impl PartialEq for IndentDelta
impl Eq for IndentDelta
impl StructuralPartialEq for IndentDelta
Auto Trait Implementations§
impl Freeze for IndentDelta
impl RefUnwindSafe for IndentDelta
impl Send for IndentDelta
impl Sync for IndentDelta
impl Unpin for IndentDelta
impl UnsafeUnpin for IndentDelta
impl UnwindSafe for IndentDelta
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