Struct ra_ap_vfs::ChangedFile
source · pub struct ChangedFile {
pub file_id: FileId,
pub change: Change,
}
Expand description
Changed file in the Vfs
.
Fields§
§file_id: FileId
Id of the changed file
change: Change
Kind of change
Implementations§
source§impl ChangedFile
impl ChangedFile
sourcepub fn is_created_or_deleted(&self) -> bool
pub fn is_created_or_deleted(&self) -> bool
sourcepub fn is_created(&self) -> bool
pub fn is_created(&self) -> bool
Returns true
if the change is Create
.
sourcepub fn is_modified(&self) -> bool
pub fn is_modified(&self) -> bool
Returns true
if the change is Modify
.
pub fn kind(&self) -> ChangeKind
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangedFile
impl RefUnwindSafe for ChangedFile
impl Send for ChangedFile
impl Sync for ChangedFile
impl Unpin for ChangedFile
impl UnwindSafe for ChangedFile
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