pub struct WorkDependency {
pub id: String,
pub project_id: String,
pub predecessor: TaskRef,
pub successor: TaskRef,
pub kind: DepKind,
pub lag: Lag,
pub created_at_unix: u32,
}Expand description
An immutable PDM dependency edge between two tasks.
Fields§
§id: String§project_id: String§predecessor: TaskRef§successor: TaskRef§kind: DepKind§lag: Lag§created_at_unix: u32Implementations§
Source§impl WorkDependency
impl WorkDependency
Sourcepub fn new_local(
project_id: impl Into<String>,
predecessor_id: impl Into<String>,
successor_id: impl Into<String>,
kind: DepKind,
lag: Lag,
created_at_unix: u32,
) -> Self
pub fn new_local( project_id: impl Into<String>, predecessor_id: impl Into<String>, successor_id: impl Into<String>, kind: DepKind, lag: Lag, created_at_unix: u32, ) -> Self
Construct a new local FS dependency with optional lag.
Sourcepub fn compile_to_quins(&self, out: &mut [NQuin]) -> usize
pub fn compile_to_quins(&self, out: &mut [NQuin]) -> usize
Zero-heap compilation into 48-byte NQuins.
Trait Implementations§
Source§impl Clone for WorkDependency
impl Clone for WorkDependency
Source§impl Debug for WorkDependency
impl Debug for WorkDependency
Source§impl<'de> Deserialize<'de> for WorkDependency
impl<'de> Deserialize<'de> for WorkDependency
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
impl Eq for WorkDependency
Source§impl PartialEq for WorkDependency
impl PartialEq for WorkDependency
Source§impl Serialize for WorkDependency
impl Serialize for WorkDependency
impl StructuralPartialEq for WorkDependency
Auto Trait Implementations§
impl Freeze for WorkDependency
impl RefUnwindSafe for WorkDependency
impl Send for WorkDependency
impl Sync for WorkDependency
impl Unpin for WorkDependency
impl UnsafeUnpin for WorkDependency
impl UnwindSafe for WorkDependency
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