pub struct SourceCoordinate {
pub role: CoordinateRole,
pub position: u64,
}Expand description
One compiler-local source position with its coordinate system stated.
Fields§
§role: CoordinateRoleThe coordinate system in which the position is counted.
position: u64The zero-based position in that coordinate system.
Trait Implementations§
Source§impl Clone for SourceCoordinate
impl Clone for SourceCoordinate
Source§fn clone(&self) -> SourceCoordinate
fn clone(&self) -> SourceCoordinate
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 moreimpl Copy for SourceCoordinate
Source§impl Debug for SourceCoordinate
impl Debug for SourceCoordinate
impl Eq for SourceCoordinate
Source§impl Hash for SourceCoordinate
impl Hash for SourceCoordinate
Source§impl PartialEq for SourceCoordinate
impl PartialEq for SourceCoordinate
impl StructuralPartialEq for SourceCoordinate
Auto Trait Implementations§
impl Freeze for SourceCoordinate
impl RefUnwindSafe for SourceCoordinate
impl Send for SourceCoordinate
impl Sync for SourceCoordinate
impl Unpin for SourceCoordinate
impl UnsafeUnpin for SourceCoordinate
impl UnwindSafe for SourceCoordinate
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