pub struct InfluenceCtx<'a> {
pub downstream: u32,
pub brush: Option<InkReach>,
pub assets: &'a dyn AssetLoader,
}Expand description
What a node needs in order to say how far outside the canvas its
input geometry can still matter — see Node::influence_pad.
Fields§
§downstream: u32Reach already claimed by everything downstream of this node.
brush: Option<InkReach>The brush feeding this node, if one does — see
Node::ink_reach.
assets: &'a dyn AssetLoaderImplementations§
Source§impl InfluenceCtx<'_>
impl InfluenceCtx<'_>
Sourcepub const UNBOUNDED: u32 = u32::MAX
pub const UNBOUNDED: u32 = u32::MAX
The reach is not bounded by anything this node knows, so nothing upstream of it may be dropped.
Sourcepub fn plus(&self, extra: f64) -> u32
pub fn plus(&self, extra: f64) -> u32
downstream plus extra px, saturating into
Self::UNBOUNDED rather than wrapping.
Sourcepub fn plus_bound(&self, bound: Option<f64>) -> u32
pub fn plus_bound(&self, bound: Option<f64>) -> u32
downstream plus a bound that may not exist — an @node port
or an unbounded $param has no static ceiling, and a field that
moves geometry outward without one cannot be culled against.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InfluenceCtx<'a>
impl<'a> !UnwindSafe for InfluenceCtx<'a>
impl<'a> Freeze for InfluenceCtx<'a>
impl<'a> Send for InfluenceCtx<'a>
impl<'a> Sync for InfluenceCtx<'a>
impl<'a> Unpin for InfluenceCtx<'a>
impl<'a> UnsafeUnpin for InfluenceCtx<'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