ide

Type Alias FilePosition

pub type FilePosition = FilePositionWrapper<FileId>;

Aliased Type§

struct FilePosition {
    pub file_id: FileId,
    pub offset: TextSize,
}

Fields§

§file_id: FileId§offset: TextSize

Trait Implementations

§

impl<FileKind> Clone for FilePositionWrapper<FileKind>
where FileKind: Clone,

§

fn clone(&self) -> FilePositionWrapper<FileKind>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<FileKind> Debug for FilePositionWrapper<FileKind>
where FileKind: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<FilePositionWrapper<EditionedFileId>> for FilePositionWrapper<FileId>

§

fn from( value: FilePositionWrapper<EditionedFileId>, ) -> FilePositionWrapper<FileId>

Converts to this type from the input type.
§

impl<FileKind> Hash for FilePositionWrapper<FileKind>
where FileKind: Hash,

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<FileKind> PartialEq for FilePositionWrapper<FileKind>
where FileKind: PartialEq,

§

fn eq(&self, other: &FilePositionWrapper<FileKind>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<FileKind> Copy for FilePositionWrapper<FileKind>
where FileKind: Copy,

§

impl<FileKind> Eq for FilePositionWrapper<FileKind>
where FileKind: Eq,

§

impl<FileKind> StructuralPartialEq for FilePositionWrapper<FileKind>