pub struct LuaCompilation { /* private fields */ }Implementations§
Source§impl LuaCompilation
impl LuaCompilation
pub fn new(emmyrc: Arc<Emmyrc>) -> Self
pub fn get_semantic_model(&self, file_id: FileId) -> Option<SemanticModel<'_>>
pub fn update_index(&mut self, file_ids: Vec<FileId>)
pub fn remove_index(&mut self, file_ids: Vec<FileId>)
pub fn get_db(&self) -> &DbIndex
pub fn get_db_mut(&mut self) -> &mut DbIndex
pub fn update_config(&mut self, config: Arc<Emmyrc>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaCompilation
impl RefUnwindSafe for LuaCompilation
impl Send for LuaCompilation
impl Sync for LuaCompilation
impl Unpin for LuaCompilation
impl UnwindSafe for LuaCompilation
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more