[−][src]Struct ra_ap_vfs::Vfs
Implementations
impl Vfs
[src]
pub fn len(&self) -> usize
[src]
pub fn file_id(&self, path: &VfsPath) -> Option<FileId>
[src]
pub fn file_path(&self, file_id: FileId) -> VfsPath
[src]
pub fn file_contents(&self, file_id: FileId) -> &[u8]
[src]
pub fn iter(&self) -> impl Iterator<Item = (FileId, &VfsPath)> + '_
[src]
pub fn set_file_contents(&mut self, path: VfsPath, contents: Option<Vec<u8>>)
[src]
pub fn has_changes(&self) -> bool
[src]
pub fn take_changes(&mut self) -> Vec<ChangedFile>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Vfs
impl Send for Vfs
impl Sync for Vfs
impl Unpin for Vfs
impl UnwindSafe for Vfs
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,