Struct webrender_api::display_item::FilterData
source · 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
ComponentTransfer / SVGFEComponentTransfer
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§fn eq(&self, other: &FilterData) -> bool
fn eq(&self, other: &FilterData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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