pub struct Composition {
pub id: CompositionId,
pub nodes: Vec<CompositionNode>,
pub output: Option<NodeId>,
pub inputs: Vec<String>,
pub controls: Vec<CompositionControl>,
}Expand description
An acyclic graph of image operations with one selected output.
Fields§
§id: CompositionIdStable composition identity.
nodes: Vec<CompositionNode>The graph’s nodes. Their order has no meaning: a node may name a node listed after it as its input.
output: Option<NodeId>The node whose image is the composition’s picture. A composition without one saves, but cannot be rendered.
inputs: Vec<String>The images a group node gives it, by name, in port order: its
NodeOp::GroupInput nodes read them.
controls: Vec<CompositionControl>The node settings a group node may set, by name.
Implementations§
Source§impl Composition
impl Composition
Sourcepub const fn new(id: CompositionId) -> Self
pub const fn new(id: CompositionId) -> Self
Creates an empty composition with no output.
Sourcepub fn node(&self, id: &NodeId) -> Option<&CompositionNode>
pub fn node(&self, id: &NodeId) -> Option<&CompositionNode>
The node named id.
Trait Implementations§
Source§impl Clone for Composition
impl Clone for Composition
Source§impl Debug for Composition
impl Debug for Composition
Source§impl<'de> Deserialize<'de> for Composition
impl<'de> Deserialize<'de> for Composition
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 Composition
impl PartialEq for Composition
Source§impl Serialize for Composition
impl Serialize for Composition
impl StructuralPartialEq for Composition
Auto Trait Implementations§
impl Freeze for Composition
impl RefUnwindSafe for Composition
impl Send for Composition
impl Sync for Composition
impl Unpin for Composition
impl UnsafeUnpin for Composition
impl UnwindSafe for Composition
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