[][src]Struct ra_ap_vfs::Vfs

pub struct Vfs { /* fields omitted */ }

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

impl Debug for Vfs[src]

impl Default for Vfs[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.