pub struct ConvolveMatrix {
    pub(crate) input: Input,
    pub(crate) matrix: ConvolveMatrixData,
    pub(crate) divisor: NonZeroF32,
    pub(crate) bias: f32,
    pub(crate) edge_mode: EdgeMode,
    pub(crate) preserve_alpha: bool,
}Expand description
A matrix convolution filter primitive.
feConvolveMatrix element in the SVG.
Fields§
§input: Input§matrix: ConvolveMatrixData§divisor: NonZeroF32§bias: f32§edge_mode: EdgeMode§preserve_alpha: boolImplementations§
Source§impl ConvolveMatrix
 
impl ConvolveMatrix
Sourcepub fn matrix(&self) -> &ConvolveMatrixData
 
pub fn matrix(&self) -> &ConvolveMatrixData
A convolve matrix.
Sourcepub fn divisor(&self) -> NonZeroF32
 
pub fn divisor(&self) -> NonZeroF32
A matrix divisor.
divisor in the SVG.
Sourcepub fn preserve_alpha(&self) -> bool
 
pub fn preserve_alpha(&self) -> bool
An alpha preserving flag.
preserveAlpha in the SVG.
Trait Implementations§
Source§impl Clone for ConvolveMatrix
 
impl Clone for ConvolveMatrix
Source§fn clone(&self) -> ConvolveMatrix
 
fn clone(&self) -> ConvolveMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl Freeze for ConvolveMatrix
impl RefUnwindSafe for ConvolveMatrix
impl Send for ConvolveMatrix
impl Sync for ConvolveMatrix
impl Unpin for ConvolveMatrix
impl UnwindSafe for ConvolveMatrix
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