Struct webrender::scene_building::CompositeOps
source · pub struct CompositeOps {
pub filters: Vec<Filter>,
pub filter_datas: Vec<FilterData>,
pub filter_primitives: Vec<FilterPrimitive>,
pub mix_blend_mode: Option<MixBlendMode>,
}
Fields§
§filters: Vec<Filter>
§filter_datas: Vec<FilterData>
§filter_primitives: Vec<FilterPrimitive>
§mix_blend_mode: Option<MixBlendMode>
Implementations§
source§impl CompositeOps
impl CompositeOps
pub fn new( filters: Vec<Filter>, filter_datas: Vec<FilterData>, filter_primitives: Vec<FilterPrimitive>, mix_blend_mode: Option<MixBlendMode> ) -> Self
pub fn is_empty(&self) -> bool
sourcefn has_valid_filters(&self) -> bool
fn has_valid_filters(&self) -> bool
Returns true if this CompositeOps contains any filters that affect the content (false if no filters, or filters are all no-ops).
Trait Implementations§
source§impl Clone for CompositeOps
impl Clone for CompositeOps
source§fn clone(&self) -> CompositeOps
fn clone(&self) -> CompositeOps
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 CompositeOps
impl Debug for CompositeOps
source§impl Default for CompositeOps
impl Default for CompositeOps
source§fn default() -> CompositeOps
fn default() -> CompositeOps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CompositeOps
impl Send for CompositeOps
impl Sync for CompositeOps
impl Unpin for CompositeOps
impl UnwindSafe for CompositeOps
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more