Enum DependencyPattern
pub enum DependencyPattern {
SameFrame,
Window {
before: usize,
after: usize,
},
FrameMap(DynamicDependencyBounds),
Dynamic(DynamicDependencyBounds),
}Expand description
Declares which upstream frames a node may request while producing one output frame.
Variants§
SameFrame
Input frame must equal output frame.
Window
Input frame may be in [output - before, output + after].
Fields
FrameMap(DynamicDependencyBounds)
Input frame is mapped by filter logic but must stay within declared bounds.
Dynamic(DynamicDependencyBounds)
Input frame is chosen at runtime but must stay within declared bounds.
Implementations§
§impl DependencyPattern
impl DependencyPattern
pub const fn same_frame() -> DependencyPattern
pub const fn same_frame() -> DependencyPattern
Creates same-frame dependency contract.
pub const fn window(before: usize, after: usize) -> DependencyPattern
pub const fn window(before: usize, after: usize) -> DependencyPattern
Creates bounded window dependency contract.
pub const fn frame_map(bounds: DynamicDependencyBounds) -> DependencyPattern
pub const fn frame_map(bounds: DynamicDependencyBounds) -> DependencyPattern
Creates frame-map dependency contract.
pub const fn dynamic(bounds: DynamicDependencyBounds) -> DependencyPattern
pub const fn dynamic(bounds: DynamicDependencyBounds) -> DependencyPattern
Creates dynamic dependency contract.
Trait Implementations§
§impl Clone for DependencyPattern
impl Clone for DependencyPattern
§fn clone(&self) -> DependencyPattern
fn clone(&self) -> DependencyPattern
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 more§impl Debug for DependencyPattern
impl Debug for DependencyPattern
§impl PartialEq for DependencyPattern
impl PartialEq for DependencyPattern
impl Eq for DependencyPattern
impl StructuralPartialEq for DependencyPattern
Auto Trait Implementations§
impl Freeze for DependencyPattern
impl RefUnwindSafe for DependencyPattern
impl Send for DependencyPattern
impl Sync for DependencyPattern
impl Unpin for DependencyPattern
impl UnsafeUnpin for DependencyPattern
impl UnwindSafe for DependencyPattern
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