ide

Type Alias FileRange

pub type FileRange = FileRangeWrapper<FileId>;

Aliased Type§

struct FileRange {
    pub file_id: FileId,
    pub range: TextRange,
}

Fields§

§file_id: FileId§range: TextRange

Trait Implementations

§

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

§

fn clone(&self) -> FileRangeWrapper<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 FileRangeWrapper<FileKind>
where FileKind: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl From<FileRangeWrapper<EditionedFileId>> for FileRangeWrapper<FileId>

§

fn from(value: FileRangeWrapper<EditionedFileId>) -> FileRangeWrapper<FileId>

Converts to this type from the input type.
§

impl<FileKind> Hash for FileRangeWrapper<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 FileRangeWrapper<FileKind>
where FileKind: PartialEq,

§

fn eq(&self, other: &FileRangeWrapper<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 FileRangeWrapper<FileKind>
where FileKind: Copy,

§

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

§

impl<FileKind> StructuralPartialEq for FileRangeWrapper<FileKind>