#[repr(transparent)]pub struct Opacity(pub f32);Expand description
Keyless style! property wrapper setting visual opacity in [0.0, 1.0].
Tuple Fields§
§0: f32Trait Implementations§
impl Copy for Opacity
impl StructuralPartialEq for Opacity
Source§impl StyleApply for Opacity
StyleApply implementation for Opacity.
impl StyleApply for Opacity
StyleApply implementation for Opacity.
Source§fn apply_in_place(self, style: &mut Style)
fn apply_in_place(self, style: &mut Style)
Applies Opacity directly in place onto style.
§Arguments
Self- Opacity factor wrapper.&mut Style- Style accumulator mutated in place.
Auto Trait Implementations§
impl Forget for Opacity
impl Freeze for Opacity
impl Move for Opacity
impl RefUnwindSafe for Opacity
impl Send for Opacity
impl Sync for Opacity
impl Unpin for Opacity
impl UnsafeUnpin for Opacity
impl UnwindSafe for Opacity
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