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§
Source§impl DependencyPattern
impl DependencyPattern
Sourcepub const fn same_frame() -> Self
pub const fn same_frame() -> Self
Creates same-frame dependency contract.
Sourcepub const fn window(before: usize, after: usize) -> Self
pub const fn window(before: usize, after: usize) -> Self
Creates bounded window dependency contract.
Sourcepub const fn frame_map(bounds: DynamicDependencyBounds) -> Self
pub const fn frame_map(bounds: DynamicDependencyBounds) -> Self
Creates frame-map dependency contract.
Sourcepub const fn dynamic(bounds: DynamicDependencyBounds) -> Self
pub const fn dynamic(bounds: DynamicDependencyBounds) -> Self
Creates dynamic dependency contract.
Trait Implementations§
Source§impl Clone for DependencyPattern
impl Clone for DependencyPattern
Source§fn clone(&self) -> DependencyPattern
fn clone(&self) -> DependencyPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyPattern
impl Debug for DependencyPattern
Source§impl PartialEq for DependencyPattern
impl PartialEq for DependencyPattern
Source§fn eq(&self, other: &DependencyPattern) -> bool
fn eq(&self, other: &DependencyPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.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