Struct ra_ap_ide::FileChange
source · pub struct FileChange {
pub roots: Option<Vec<SourceRoot>>,
pub files_changed: Vec<(FileId, Option<String>)>,
pub crate_graph: Option<CrateGraph>,
}
Expand description
Encapsulate a bunch of raw .set
calls on the database.
Fields§
§roots: Option<Vec<SourceRoot>>
§files_changed: Vec<(FileId, Option<String>)>
§crate_graph: Option<CrateGraph>
Implementations§
source§impl FileChange
impl FileChange
pub fn new() -> FileChange
pub fn set_roots(&mut self, roots: Vec<SourceRoot>)
pub fn change_file(&mut self, file_id: FileId, new_text: Option<String>)
pub fn set_crate_graph(&mut self, graph: CrateGraph)
pub fn apply(self, db: &mut dyn SourceDatabaseExt)
Trait Implementations§
source§impl Debug for FileChange
impl Debug for FileChange
source§impl Default for FileChange
impl Default for FileChange
source§fn default() -> FileChange
fn default() -> FileChange
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileChange
impl RefUnwindSafe for FileChange
impl Send for FileChange
impl Sync for FileChange
impl Unpin for FileChange
impl UnwindSafe for FileChange
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.