pub struct TextPosition { /* private fields */ }
Expand description
Represents a position inside some textual document.
Implementations§
Source§impl TextPosition
impl TextPosition
Sourcepub const fn new() -> TextPosition
pub const fn new() -> TextPosition
Creates a new position initialized to the beginning of the document
Trait Implementations§
Source§impl Clone for TextPosition
impl Clone for TextPosition
Source§fn clone(&self) -> TextPosition
fn clone(&self) -> TextPosition
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 TextPosition
impl Debug for TextPosition
Source§impl Display for TextPosition
impl Display for TextPosition
Source§impl PartialEq for TextPosition
impl PartialEq for TextPosition
Source§impl Position for TextPosition
impl Position for TextPosition
Source§fn position(&self) -> TextPosition
fn position(&self) -> TextPosition
Returns the current position or a position corresponding to the object.
impl Copy for TextPosition
impl Eq for TextPosition
impl StructuralPartialEq for TextPosition
Auto Trait Implementations§
impl Freeze for TextPosition
impl RefUnwindSafe for TextPosition
impl Send for TextPosition
impl Sync for TextPosition
impl Unpin for TextPosition
impl UnwindSafe for TextPosition
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