pub struct FileId(pub u32);
Expand description
FileId
is an integer which uniquely identifies a file. File paths are messy and
system-dependent, so most of the code should work directly with FileId
, without inspecting the
path. The mapping between FileId
and path and SourceRoot
is constant. A file rename is
represented as a pair of deletion/creation.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Ord for FileId
impl Ord for FileId
source§impl PartialOrd<FileId> for FileId
impl PartialOrd<FileId> for FileId
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 FileId
impl Eq for FileId
impl StructuralEq for FileId
impl StructuralPartialEq for FileId
Auto Trait Implementations§
impl RefUnwindSafe for FileId
impl Send for FileId
impl Sync for FileId
impl Unpin for FileId
impl UnwindSafe for FileId
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.