pub struct TextLocation {
pub start: usize,
pub extent: usize,
}Fields§
§start: usize§extent: usizeTrait Implementations§
Source§impl Clone for TextLocation
impl Clone for TextLocation
Source§fn clone(&self) -> TextLocation
fn clone(&self) -> TextLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextLocation
impl Debug for TextLocation
Source§impl Default for TextLocation
impl Default for TextLocation
Source§fn default() -> TextLocation
fn default() -> TextLocation
Returns the “default value” for a type. Read more
Source§impl Display for TextLocation
impl Display for TextLocation
Source§impl From<Node<'_>> for TextLocation
impl From<Node<'_>> for TextLocation
impl Location for TextLocation
Source§impl PartialEq for TextLocation
impl PartialEq for TextLocation
impl StructuralPartialEq for TextLocation
Auto Trait Implementations§
impl Freeze for TextLocation
impl RefUnwindSafe for TextLocation
impl Send for TextLocation
impl Sync for TextLocation
impl Unpin for TextLocation
impl UnsafeUnpin for TextLocation
impl UnwindSafe for TextLocation
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