Struct ra_ap_vfs::Vfs[][src]

pub struct Vfs { /* fields omitted */ }
Expand description

Storage for all files read by rust-analyzer.

For more informations see the crate-level documentation.

Implementations

Amount of files currently stored.

Note that this includes deleted files.

Id of the given path if it exists in the Vfs and is not deleted.

File path corresponding to the given file_id.

Panics

Panics if the id is not present in the Vfs.

File content corresponding to the given file_id.

Panics

Panics if the id is not present in the Vfs, or if the corresponding file is deleted.

Returns an iterator over the stored ids and their corresponding paths.

This will skip deleted files.

Update the path with the given contents. None means the file was deleted.

Returns true if the file was modified, and saves the change.

If the path does not currently exists in the Vfs, allocates a new FileId for it.

Returns true if the Vfs contains changes.

Drain and returns all the changes in the Vfs.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.