pub enum LinesMode<'a> {
Compute,
Defer(&'a mut dyn FnMut(LinesJob) -> Deferred),
}Expand description
What a projection does on an exact-lines MISS.
Variants§
Compute
Run the pass here and now, on this thread — an export, a test, a runner that cannot run the job.
Defer(&'a mut dyn FnMut(LinesJob) -> Deferred)
Hand the job over. The answer comes back as the lines (a runner that
answered at once), None while it is being computed elsewhere — the
placement then draws its mesh approximation — or Deferred::Here to
run it on this thread after all.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LinesMode<'a>
impl<'a> !Send for LinesMode<'a>
impl<'a> !Sync for LinesMode<'a>
impl<'a> !UnwindSafe for LinesMode<'a>
impl<'a> Freeze for LinesMode<'a>
impl<'a> Unpin for LinesMode<'a>
impl<'a> UnsafeUnpin for LinesMode<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more