pub struct FileId(pub u32);
Expand description
Handle to a file in Vfs
Most functions in rust-analyzer use this when they need to refer to a file.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Ord for FileId
impl Ord for FileId
source§impl PartialEq for FileId
impl PartialEq for FileId
source§impl PartialOrd for FileId
impl PartialOrd 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 IsEnabled for FileId
safe because FileId
is a newtype of u32
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<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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.