pub struct Vfs { /* private fields */ }Implementations§
Source§impl Vfs
impl Vfs
pub fn new() -> Self
pub fn file_id(&mut self, uri: &Uri) -> FileId
pub fn get_file_id(&self, uri: &Uri) -> Option<FileId>
pub fn get_uri(&self, id: &FileId) -> Option<Uri>
pub fn get_file_path(&self, id: &FileId) -> Option<&PathBuf>
pub fn set_file_content(&mut self, uri: &Uri, data: Option<String>) -> FileId
pub fn update_config(&mut self, emmyrc: Arc<Emmyrc>)
pub fn get_file_content(&self, id: &FileId) -> Option<&String>
pub fn get_document(&self, id: &FileId) -> Option<LuaDocument<'_>>
pub fn get_syntax_tree(&self, id: &FileId) -> Option<&LuaSyntaxTree>
pub fn get_file_parse_error( &self, id: &FileId, ) -> Option<Vec<(String, TextRange)>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vfs
impl RefUnwindSafe for Vfs
impl Send for Vfs
impl Sync for Vfs
impl Unpin for Vfs
impl UnwindSafe for Vfs
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