pub struct CodeCharacter {
pub char: String,
pub x: usize,
pub len: usize,
}
Expand description
A single character in the source code with layout metadata.
Used internally to track the character, its x-position, and width in a parsed line.
Fields§
§char: String
The character itself.
x: usize
The x position (column) of the character.
len: usize
The display width of the character.
Trait Implementations§
Source§impl Clone for CodeCharacter
impl Clone for CodeCharacter
Source§fn clone(&self) -> CodeCharacter
fn clone(&self) -> CodeCharacter
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 CodeCharacter
impl Debug for CodeCharacter
Source§impl PartialEq for CodeCharacter
impl PartialEq for CodeCharacter
impl Eq for CodeCharacter
impl StructuralPartialEq for CodeCharacter
Auto Trait Implementations§
impl Freeze for CodeCharacter
impl RefUnwindSafe for CodeCharacter
impl Send for CodeCharacter
impl Sync for CodeCharacter
impl Unpin for CodeCharacter
impl UnwindSafe for CodeCharacter
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