pub enum FileOrigin<'tree, Tree>where
Tree: Ast,{
Fresh,
Mutated,
New,
_Phantom(PhantomData<&'tree Tree>),
}Expand description
Information on where a file came from, for the parser to be smarter
Variants§
Fresh
A file we are parsing for the first time, from disk
Mutated
A file we have parsed before, and are re-parsing after mutating
New
A file that was constructed by Grit
_Phantom(PhantomData<&'tree Tree>)
We might need these
Implementations§
Trait Implementations§
Source§impl<'tree, Tree> Clone for FileOrigin<'tree, Tree>
impl<'tree, Tree> Clone for FileOrigin<'tree, Tree>
Source§fn clone(&self) -> FileOrigin<'tree, Tree>
fn clone(&self) -> FileOrigin<'tree, Tree>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'tree, Tree> Freeze for FileOrigin<'tree, Tree>
impl<'tree, Tree> RefUnwindSafe for FileOrigin<'tree, Tree>where
Tree: RefUnwindSafe,
impl<'tree, Tree> Send for FileOrigin<'tree, Tree>where
Tree: Sync,
impl<'tree, Tree> Sync for FileOrigin<'tree, Tree>where
Tree: Sync,
impl<'tree, Tree> Unpin for FileOrigin<'tree, Tree>
impl<'tree, Tree> UnwindSafe for FileOrigin<'tree, Tree>where
Tree: RefUnwindSafe,
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