Struct cairo_lang_filesystem::ids::VirtualFile
source · pub struct VirtualFile {
pub parent: Option<FileId>,
pub name: SmolStr,
pub content: Arc<String>,
pub diagnostics_mappings: Arc<Vec<DiagnosticMapping>>,
pub kind: FileKind,
}
Fields§
§parent: Option<FileId>
§name: SmolStr
§content: Arc<String>
§diagnostics_mappings: Arc<Vec<DiagnosticMapping>>
§kind: FileKind
Trait Implementations§
source§impl Clone for VirtualFile
impl Clone for VirtualFile
source§fn clone(&self) -> VirtualFile
fn clone(&self) -> VirtualFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VirtualFile
impl Debug for VirtualFile
source§impl Hash for VirtualFile
impl Hash for VirtualFile
source§impl PartialEq<VirtualFile> for VirtualFile
impl PartialEq<VirtualFile> for VirtualFile
source§fn eq(&self, other: &VirtualFile) -> bool
fn eq(&self, other: &VirtualFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VirtualFile
impl StructuralEq for VirtualFile
impl StructuralPartialEq for VirtualFile
Auto Trait Implementations§
impl RefUnwindSafe for VirtualFile
impl Send for VirtualFile
impl Sync for VirtualFile
impl Unpin for VirtualFile
impl UnwindSafe for VirtualFile
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.