Struct rustpython_parser::source_code::SourceLocation
pub struct SourceLocation {
pub row: OneIndexed,
pub column: OneIndexed,
}
Fields§
§row: OneIndexed
§column: OneIndexed
Trait Implementations§
§impl Clone for SourceLocation
impl Clone for SourceLocation
§fn clone(&self) -> SourceLocation
fn clone(&self) -> SourceLocation
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 more§impl Debug for SourceLocation
impl Debug for SourceLocation
§impl Default for SourceLocation
impl Default for SourceLocation
§fn default() -> SourceLocation
fn default() -> SourceLocation
Returns the “default value” for a type. Read more
§impl Hash for SourceLocation
impl Hash for SourceLocation
§impl Ord for SourceLocation
impl Ord for SourceLocation
§impl PartialEq<SourceLocation> for SourceLocation
impl PartialEq<SourceLocation> for SourceLocation
§fn eq(&self, other: &SourceLocation) -> bool
fn eq(&self, other: &SourceLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<SourceLocation> for SourceLocation
impl PartialOrd<SourceLocation> for SourceLocation
§fn partial_cmp(&self, other: &SourceLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceLocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SourceLocation
impl Eq for SourceLocation
impl StructuralEq for SourceLocation
impl StructuralPartialEq for SourceLocation
Auto Trait Implementations§
impl RefUnwindSafe for SourceLocation
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnwindSafe for SourceLocation
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