pub struct FilterData {
pub func_r_type: ComponentTransferFuncType,
pub r_values: Vec<f32>,
pub func_g_type: ComponentTransferFuncType,
pub g_values: Vec<f32>,
pub func_b_type: ComponentTransferFuncType,
pub b_values: Vec<f32>,
pub func_a_type: ComponentTransferFuncType,
pub a_values: Vec<f32>,
}
Fields§
§func_r_type: ComponentTransferFuncType
§r_values: Vec<f32>
§func_g_type: ComponentTransferFuncType
§g_values: Vec<f32>
§func_b_type: ComponentTransferFuncType
§b_values: Vec<f32>
§func_a_type: ComponentTransferFuncType
§a_values: Vec<f32>
Implementations§
Source§impl FilterData
impl FilterData
Sourcepub fn sanitize(&self) -> FilterData
pub fn sanitize(&self) -> FilterData
Ensure that the number of values matches up with the function type.
pub fn is_identity(&self) -> bool
Trait Implementations§
Source§impl Clone for FilterData
impl Clone for FilterData
Source§fn clone(&self) -> FilterData
fn clone(&self) -> FilterData
Returns a copy 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 moreSource§impl Debug for FilterData
impl Debug for FilterData
Source§impl<'de> Deserialize<'de> for FilterData
impl<'de> Deserialize<'de> for FilterData
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 FilterData
impl PartialEq for FilterData
Source§impl Serialize for FilterData
impl Serialize for FilterData
impl StructuralPartialEq for FilterData
Auto Trait Implementations§
impl Freeze for FilterData
impl RefUnwindSafe for FilterData
impl Send for FilterData
impl Sync for FilterData
impl Unpin for FilterData
impl UnwindSafe for FilterData
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