Enum cairo_lang_filesystem::ids::FileLongId
source · pub enum FileLongId {
OnDisk(PathBuf),
Virtual(VirtualFile),
}
Expand description
We use a higher level FileId struct, because not all files are on disk. Some might be online. Some might be virtual/computed on demand.
Variants§
OnDisk(PathBuf)
Virtual(VirtualFile)
Trait Implementations§
source§impl Clone for FileLongId
impl Clone for FileLongId
source§fn clone(&self) -> FileLongId
fn clone(&self) -> FileLongId
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 FileLongId
impl Debug for FileLongId
source§impl Hash for FileLongId
impl Hash for FileLongId
source§impl PartialEq for FileLongId
impl PartialEq for FileLongId
source§fn eq(&self, other: &FileLongId) -> bool
fn eq(&self, other: &FileLongId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FileLongId
impl StructuralEq for FileLongId
impl StructuralPartialEq for FileLongId
Auto Trait Implementations§
impl RefUnwindSafe for FileLongId
impl Send for FileLongId
impl Sync for FileLongId
impl Unpin for FileLongId
impl UnwindSafe for FileLongId
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.