pub struct OpacityScope {
pub node_id: u32,
pub opacity: f32,
}Expand description
One authored opacity boundary, ordered from the outermost ancestor to the painted node. Native surfaces can present independently while a canvas backend composes each scope.
Fields§
§node_id: u32§opacity: f32Trait Implementations§
Source§impl Clone for OpacityScope
impl Clone for OpacityScope
Source§fn clone(&self) -> OpacityScope
fn clone(&self) -> OpacityScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpacityScope
Source§impl Debug for OpacityScope
impl Debug for OpacityScope
Source§impl Interpolatable for OpacityScope
impl Interpolatable for OpacityScope
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for OpacityScope
impl PartialEq for OpacityScope
impl StructuralPartialEq for OpacityScope
Auto Trait Implementations§
impl Freeze for OpacityScope
impl RefUnwindSafe for OpacityScope
impl Send for OpacityScope
impl Sync for OpacityScope
impl Unpin for OpacityScope
impl UnsafeUnpin for OpacityScope
impl UnwindSafe for OpacityScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.