[][src]Enum gtk::SpinButtonUpdatePolicy

#[non_exhaustive]pub enum SpinButtonUpdatePolicy {
    Always,
    IfValid,
    // some variants omitted
}

The spin button update policy determines whether the spin button displays values even if they are outside the bounds of its adjustment. See SpinButtonExt::set_update_policy.

Variants (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.
Always

When refreshing your SpinButton, the value is always displayed

IfValid

When refreshing your SpinButton, the value is only displayed if it is valid within the bounds of the spin button's adjustment

Trait Implementations

impl Clone for SpinButtonUpdatePolicy[src]

impl Copy for SpinButtonUpdatePolicy[src]

impl Debug for SpinButtonUpdatePolicy[src]

impl Display for SpinButtonUpdatePolicy[src]

impl Eq for SpinButtonUpdatePolicy[src]

impl<'a> FromValue<'a> for SpinButtonUpdatePolicy[src]

impl<'a> FromValueOptional<'a> for SpinButtonUpdatePolicy[src]

impl Hash for SpinButtonUpdatePolicy[src]

impl Ord for SpinButtonUpdatePolicy[src]

impl PartialEq<SpinButtonUpdatePolicy> for SpinButtonUpdatePolicy[src]

impl PartialOrd<SpinButtonUpdatePolicy> for SpinButtonUpdatePolicy[src]

impl SetValue for SpinButtonUpdatePolicy[src]

impl StaticType for SpinButtonUpdatePolicy[src]

impl StructuralEq for SpinButtonUpdatePolicy[src]

impl StructuralPartialEq for SpinButtonUpdatePolicy[src]

Auto Trait Implementations

impl RefUnwindSafe for SpinButtonUpdatePolicy

impl Send for SpinButtonUpdatePolicy

impl Sync for SpinButtonUpdatePolicy

impl Unpin for SpinButtonUpdatePolicy

impl UnwindSafe for SpinButtonUpdatePolicy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.