gdk_pixbuf

Enum PixbufAlphaMode

source
#[non_exhaustive]
pub enum PixbufAlphaMode { Bilevel, Full, }
๐Ÿ‘ŽDeprecated: Since 2.42

Variants (Non-exhaustive)ยง

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ยง

Bilevel

๐Ÿ‘ŽDeprecated: Since 2.42
ยง

Full

๐Ÿ‘ŽDeprecated: Since 2.42

Trait Implementationsยง

sourceยง

impl Clone for PixbufAlphaMode

sourceยง

fn clone(&self) -> PixbufAlphaMode

Returns a copy of the value. Read more
1.6.0 ยท sourceยง

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

Performs copy-assignment from source. Read more
sourceยง

impl Debug for PixbufAlphaMode

sourceยง

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

Formats the value using the given formatter. Read more
sourceยง

impl From<PixbufAlphaMode> for Value

sourceยง

fn from(v: PixbufAlphaMode) -> Self

Converts to this type from the input type.
sourceยง

impl<'a> FromValue<'a> for PixbufAlphaMode

sourceยง

type Checker = GenericValueTypeChecker<PixbufAlphaMode>

Value type checker.
sourceยง

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
sourceยง

impl HasParamSpec for PixbufAlphaMode

sourceยง

type ParamSpec = ParamSpecEnum

sourceยง

type SetValue = PixbufAlphaMode

Preferred value to be used as setter for the associated ParamSpec.
sourceยง

type BuilderFn = fn(_: &str, _: PixbufAlphaMode) -> ParamSpecEnumBuilder<'_, PixbufAlphaMode>

sourceยง

fn param_spec_builder() -> Self::BuilderFn

sourceยง

impl Hash for PixbufAlphaMode

sourceยง

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.6.0 ยท sourceยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
sourceยง

impl Ord for PixbufAlphaMode

sourceยง

fn cmp(&self, other: &PixbufAlphaMode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 ยท sourceยง

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 ยท sourceยง

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 ยท sourceยง

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
sourceยง

impl PartialEq for PixbufAlphaMode

sourceยง

fn eq(&self, other: &PixbufAlphaMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.6.0 ยท sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
sourceยง

impl PartialOrd for PixbufAlphaMode

sourceยง

fn partial_cmp(&self, other: &PixbufAlphaMode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.6.0 ยท sourceยง

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

Tests less than (for self and other) and is used by the < operator. Read more
1.6.0 ยท sourceยง

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.6.0 ยท sourceยง

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.6.0 ยท sourceยง

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
sourceยง

impl StaticType for PixbufAlphaMode

sourceยง

fn static_type() -> Type

Returns the type identifier of Self.
sourceยง

impl ToValue for PixbufAlphaMode

sourceยง

fn to_value(&self) -> Value

Convert a value to a Value.
sourceยง

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
sourceยง

impl ValueType for PixbufAlphaMode

sourceยง

type Type = PixbufAlphaMode

Type to get the Type from. Read more
sourceยง

impl Copy for PixbufAlphaMode

sourceยง

impl Eq for PixbufAlphaMode

sourceยง

impl StructuralPartialEq for PixbufAlphaMode

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> CloneToUninit for T
where T: Clone,

sourceยง

unsafe fn clone_to_uninit(&self, dst: *mut T)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

sourceยง

impl<T> Property for T
where T: HasParamSpec,

sourceยง

impl<T> PropertyGet for T
where T: HasParamSpec,

sourceยง

type Value = T

sourceยง

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

sourceยง

impl<T> StaticTypeExt for T
where T: StaticType,

sourceยง

fn ensure_type()

Ensures that the type has been registered with the type system.
sourceยง

impl<T> ToOwned for T
where T: Clone,

sourceยง

type Owned = T

The resulting type after obtaining ownership.
sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
sourceยง

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

sourceยง

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.