Struct swf_types::filters::Convolution
source · [−]pub struct Convolution {
pub matrix_width: usize,
pub matrix_height: usize,
pub divisor: f32,
pub bias: f32,
pub matrix: Vec<f32>,
pub default_color: StraightSRgba8,
pub clamp: bool,
pub preserve_alpha: bool,
}
Fields
matrix_width: usize
matrix_height: usize
divisor: f32
bias: f32
matrix: Vec<f32>
default_color: StraightSRgba8
clamp: bool
preserve_alpha: bool
Trait Implementations
sourceimpl Clone for Convolution
impl Clone for Convolution
sourcefn clone(&self) -> Convolution
fn clone(&self) -> Convolution
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Convolution
impl Debug for Convolution
sourceimpl<'de> Deserialize<'de> for Convolution
impl<'de> Deserialize<'de> for Convolution
sourcefn 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
sourceimpl PartialEq<Convolution> for Convolution
impl PartialEq<Convolution> for Convolution
sourceimpl Serialize for Convolution
impl Serialize for Convolution
impl Eq for Convolution
Auto Trait Implementations
impl RefUnwindSafe for Convolution
impl Send for Convolution
impl Sync for Convolution
impl Unpin for Convolution
impl UnwindSafe for Convolution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more