pub struct Change {
pub roots: Option<Vec<SourceRoot, Global>>,
pub files_changed: Vec<(FileId, Option<Arc<String>>), Global>,
pub crate_graph: Option<CrateGraph>,
}
Expand description
Encapsulate a bunch of raw .set
calls on the database.
Fields
roots: Option<Vec<SourceRoot, Global>>
files_changed: Vec<(FileId, Option<Arc<String>>), Global>
crate_graph: Option<CrateGraph>
Implementations
impl Change
impl Change
pub fn set_roots(&mut self, roots: Vec<SourceRoot, Global>)
pub fn change_file(&mut self, file_id: FileId, new_text: Option<Arc<String>>)
pub fn set_crate_graph(&mut self, graph: CrateGraph)
pub fn apply(self, db: &mut dyn SourceDatabaseExt)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Change
impl UnwindSafe for Change
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more