Struct ra_ap_span::FilePosition
source · pub struct FilePosition {
pub file_id: FileId,
pub offset: TextSize,
}
Fields§
§file_id: FileId
§offset: TextSize
Trait Implementations§
source§impl Clone for FilePosition
impl Clone for FilePosition
source§fn clone(&self) -> FilePosition
fn clone(&self) -> FilePosition
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 moresource§impl Debug for FilePosition
impl Debug for FilePosition
source§impl Hash for FilePosition
impl Hash for FilePosition
source§impl PartialEq for FilePosition
impl PartialEq for FilePosition
source§fn eq(&self, other: &FilePosition) -> bool
fn eq(&self, other: &FilePosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FilePosition
impl Eq for FilePosition
impl StructuralPartialEq for FilePosition
Auto Trait Implementations§
impl Freeze for FilePosition
impl RefUnwindSafe for FilePosition
impl Send for FilePosition
impl Sync for FilePosition
impl Unpin for FilePosition
impl UnwindSafe for FilePosition
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.