ConnectBinding

Trait ConnectBinding 

Source
pub trait ConnectBinding {
    type Target;

    // Required method
    fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B);
}
Expand description

A trait that allows type-safe bindings between to the primary properties of two objects.

Required Associated Types§

Source

type Target

The type of the primary property.

Required Methods§

Source

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Create a type-safe bidirectional between the primary property of an object and a Binding.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ConnectBinding for Adjustment

Create a data binding to the primary property value with type f64.

Source§

type Target = f64

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Button

Create a data binding to the primary property label with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for CheckButton

Create a data binding to the primary property active with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Image

Create a data binding to the primary property icon-name with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Label

Create a data binding to the primary property label with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for LinkButton

Create a data binding to the primary property uri with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for MenuButton

Create a data binding to the primary property label with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Popover

Create a data binding to the primary property visible with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Revealer

Create a data binding to the primary property reveal-child with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for ScaleButton

Create a data binding to the primary property value with type f64.

Source§

type Target = f64

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for SpinButton

Create a data binding to the primary property value with type f64.

Source§

type Target = f64

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Spinner

Create a data binding to the primary property spinning with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for StackPage

Create a data binding to the primary property name with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Switch

Create a data binding to the primary property active with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for ToggleButton

Create a data binding to the primary property active with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for ActionRow

Create a data binding to the primary property title with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for Banner

Create a data binding to the primary property title with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for ButtonContent

Create a data binding to the primary property label with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for ButtonRow

Create a data binding to the primary property title with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for ExpanderRow

Create a data binding to the primary property expanded with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for PreferencesRow

Create a data binding to the primary property title with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for SpinRow

Create a data binding to the primary property value with type f64.

Source§

type Target = f64

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for SplitButton

Create a data binding to the primary property label with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for SwitchRow

Create a data binding to the primary property active with type bool.

Source§

type Target = bool

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Source§

impl ConnectBinding for WindowTitle

Create a data binding to the primary property title with type String.

Source§

type Target = String

Source§

fn bind<B: Binding<Target = Self::Target>>(&self, binding: &B)

Implementors§