pub struct InnerWidthMapping {
pub position: usize,
pub before: usize,
pub after: usize,
}
Expand description
The location and before/after width of a character whose width has changed from its source code representation
Fields§
§position: usize
Index of the character in the source
before: usize
The inner width in characters
after: usize
The transformed width in characters
Implementations§
Trait Implementations§
Source§impl Clone for InnerWidthMapping
impl Clone for InnerWidthMapping
Source§fn clone(&self) -> InnerWidthMapping
fn clone(&self) -> InnerWidthMapping
Returns a copy 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 PartialEq for InnerWidthMapping
impl PartialEq for InnerWidthMapping
impl Copy for InnerWidthMapping
impl Eq for InnerWidthMapping
impl StructuralPartialEq for InnerWidthMapping
Auto Trait Implementations§
impl Freeze for InnerWidthMapping
impl RefUnwindSafe for InnerWidthMapping
impl Send for InnerWidthMapping
impl Sync for InnerWidthMapping
impl Unpin for InnerWidthMapping
impl UnwindSafe for InnerWidthMapping
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