pub struct FilterInputs {
pub primary: FilterInput,
pub secondary: Option<FilterInput>,
}Expand description
Input connections for a filter primitive.
Fields§
§primary: FilterInputPrimary input (“in” attribute in SVG).
secondary: Option<FilterInput>Secondary input (“in2” attribute in SVG, for composite/blend operations).
Implementations§
Source§impl FilterInputs
impl FilterInputs
Sourcepub fn single(input: FilterInput) -> Self
pub fn single(input: FilterInput) -> Self
Create filter inputs with a single input.
Use this for primitives that operate on a single source (blur, color matrix, etc.).
Sourcepub fn dual(input1: FilterInput, input2: FilterInput) -> Self
pub fn dual(input1: FilterInput, input2: FilterInput) -> Self
Create filter inputs with two inputs (for composite, blend, etc.).
Use this for primitives that combine two sources (composite, blend, displacement map, etc.).
Trait Implementations§
Source§impl Clone for FilterInputs
impl Clone for FilterInputs
Source§fn clone(&self) -> FilterInputs
fn clone(&self) -> FilterInputs
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 FilterInputs
impl Debug for FilterInputs
Source§impl PartialEq for FilterInputs
impl PartialEq for FilterInputs
Source§fn eq(&self, other: &FilterInputs) -> bool
fn eq(&self, other: &FilterInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FilterInputs
Auto Trait Implementations§
impl Freeze for FilterInputs
impl RefUnwindSafe for FilterInputs
impl Send for FilterInputs
impl Sync for FilterInputs
impl Unpin for FilterInputs
impl UnsafeUnpin for FilterInputs
impl UnwindSafe for FilterInputs
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