pub struct Draw {
pub index: u64,
pub tree: PatchTree,
pub dup: bool,
}Expand description
One unit of farm work: an index of the draw stream and the term it names.
dup is a courtesy, not a decision: the term already sits in the pool, so
rendering it would be wasted. The absorbing engine re-checks against the
pool as it actually stands at index index, so a stale or missing dup
costs a render and changes nothing.
Fields§
§index: u64Index in the pool draw stream.
tree: PatchTreeThe term at that index.
dup: boolAlready in the pool when this was issued — skippable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Draw
impl<'de> Deserialize<'de> for Draw
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Draw
impl RefUnwindSafe for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Draw
impl UnwindSafe for Draw
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