Type Alias webrender::picture::OpacityBinding

source ·
pub type OpacityBinding = Binding<f32>;

Aliased Type§

enum OpacityBinding {
    Value(f32),
    Binding(PropertyBindingId),
}

Variants§

§

Value(f32)

§

Binding(PropertyBindingId)

Trait Implementations§

source§

impl<T: Clone> Clone for Binding<T>

source§

fn clone(&self) -> Binding<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Binding<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default> Default for Binding<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T> From<PropertyBinding<T>> for Binding<T>

source§

fn from(binding: PropertyBinding<T>) -> Binding<T>

Converts to this type from the input type.
source§

impl<T: PartialEq> PartialEq<Binding<T>> for Binding<T>

source§

fn eq(&self, other: &Binding<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Peek for Binding<T>where T: Default + Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut Self) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Poke for Binding<T>where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Serialize for Binding<T>where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Copy> Copy for Binding<T>

source§

impl<T> StructuralPartialEq for Binding<T>