pub struct CompositionNode {
pub id: NodeId,
pub bypass: bool,
pub op: NodeOp,
}Expand description
One image operation in a Composition.
Fields§
§id: NodeIdIdentity, unique within its composition.
bypass: boolWhether the node passes its NodeOp::bypass_input through unchanged. A node without
inputs cannot be bypassed.
op: NodeOpWhat the node does, with its inputs and settings.
Implementations§
Source§impl CompositionNode
impl CompositionNode
Sourcepub fn needed_inputs(&self) -> Vec<NodeInput<'_>>
pub fn needed_inputs(&self) -> Vec<NodeInput<'_>>
The inputs drawing the node reads, in input order: only its NodeOp::bypass_input when
bypassed (none for a merge without layers), every input otherwise except an unconnected
key mix mask.
Trait Implementations§
Source§impl Clone for CompositionNode
impl Clone for CompositionNode
Source§impl Debug for CompositionNode
impl Debug for CompositionNode
Source§impl<'de> Deserialize<'de> for CompositionNode
impl<'de> Deserialize<'de> for CompositionNode
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
Source§impl PartialEq for CompositionNode
impl PartialEq for CompositionNode
Source§impl Serialize for CompositionNode
impl Serialize for CompositionNode
impl StructuralPartialEq for CompositionNode
Auto Trait Implementations§
impl Forget for CompositionNode
impl Freeze for CompositionNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GradientStop>: Freeze,
PhantomData<ShapeItem>: Freeze,
PhantomData<TextRun>: Freeze,
*const TextStyle is !null: Freeze,
PhantomData<TextStyle>: Freeze,
*const LayoutNode is !null: Freeze,
PhantomData<LayoutNode>: Freeze,
*const LeafNode<String, Animated<EffectValue>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Animated<EffectValue>)>>: Freeze,
*const LeafNode<String, EffectResourceId> is !null: Freeze,
PhantomData<Box<(String, EffectResourceId)>>: Freeze,
*const LeafNode<String, Option<NodeId>> is !null: Freeze,
PhantomData<Box<(String, Option<NodeId>)>>: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
PhantomData<Animated<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
PhantomData<PointKeyframe>: Freeze,
*const MotionPath is !null: Freeze,
PhantomData<MotionPath>: Freeze,
PhantomData<Keyframe<Vec2>>: Freeze,
PhantomData<MergeLayer>: Freeze,
PhantomData<ShapeMask>: Freeze,
PhantomData<Option<NodeId>>: Freeze,
impl Move for CompositionNode
impl RefUnwindSafe for CompositionNode
impl Send for CompositionNodewhere
RawVecInner: Send,
BoxRaw<DataBinding>: Send,
BoxRaw<MotionPath>: Send,
BoxRaw<TextStyle>: Send,
BoxRaw<LayoutNode>: Send,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Send,
BoxRaw<(String, Animated<EffectValue>)>: Send,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Send,
BoxRaw<(String, EffectResourceId)>: Send,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Send,
BoxRaw<(String, Option<NodeId>)>: Send,
impl Sync for CompositionNodewhere
RawVecInner: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<MotionPath>: Sync,
BoxRaw<TextStyle>: Sync,
BoxRaw<LayoutNode>: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Sync,
BoxRaw<(String, EffectResourceId)>: Sync,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Sync,
BoxRaw<(String, Option<NodeId>)>: Sync,
impl Unpin for CompositionNodewhere
*const u8 is !null: Unpin,
Box<DataBinding>: Unpin,
Box<MotionPath>: Unpin,
Box<TextStyle>: Unpin,
Box<LayoutNode>: Unpin,
*const LeafNode<String, Animated<EffectValue>> is !null: Unpin,
Box<(String, Animated<EffectValue>)>: Unpin,
*const LeafNode<String, EffectResourceId> is !null: Unpin,
Box<(String, EffectResourceId)>: Unpin,
*const LeafNode<String, Option<NodeId>> is !null: Unpin,
Box<(String, Option<NodeId>)>: Unpin,
impl UnsafeUnpin for CompositionNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GradientStop>: UnsafeUnpin,
PhantomData<ShapeItem>: UnsafeUnpin,
PhantomData<TextRun>: UnsafeUnpin,
*const TextStyle is !null: UnsafeUnpin,
PhantomData<TextStyle>: UnsafeUnpin,
*const LayoutNode is !null: UnsafeUnpin,
PhantomData<LayoutNode>: UnsafeUnpin,
*const LeafNode<String, Animated<EffectValue>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Animated<EffectValue>)>>: UnsafeUnpin,
*const LeafNode<String, EffectResourceId> is !null: UnsafeUnpin,
PhantomData<Box<(String, EffectResourceId)>>: UnsafeUnpin,
*const LeafNode<String, Option<NodeId>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Option<NodeId>)>>: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
PhantomData<Animated<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
PhantomData<PointKeyframe>: UnsafeUnpin,
*const MotionPath is !null: UnsafeUnpin,
PhantomData<MotionPath>: UnsafeUnpin,
PhantomData<Keyframe<Vec2>>: UnsafeUnpin,
PhantomData<MergeLayer>: UnsafeUnpin,
PhantomData<ShapeMask>: UnsafeUnpin,
PhantomData<Option<NodeId>>: UnsafeUnpin,
impl UnwindSafe for CompositionNodewhere
RawVecInner: UnwindSafe,
BoxRaw<DataBinding>: UnwindSafe,
BoxRaw<MotionPath>: UnwindSafe,
BoxRaw<TextStyle>: UnwindSafe,
BoxRaw<LayoutNode>: UnwindSafe,
BTreeMap<String, Animated<EffectValue>>: UnwindSafe,
BTreeMap<String, EffectResourceId>: UnwindSafe,
BTreeMap<String, Option<NodeId>>: UnwindSafe,
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