[][src]Struct orbtk_api::properties::AttachedProperty

pub struct AttachedProperty<P> where
    P: Component + Debug
{ pub key: String, pub property_source: PropertySource<P>, }

Used ot generate attached properties.

Fields

key: Stringproperty_source: PropertySource<P>

Implementations

impl<P> AttachedProperty<P> where
    P: Component + Debug
[src]

pub fn new(
    key: impl Into<String>,
    property_source: impl IntoPropertySource<P>
) -> Self
[src]

Create a new attached property.

Auto Trait Implementations

impl<P> RefUnwindSafe for AttachedProperty<P> where
    P: RefUnwindSafe

impl<P> Send for AttachedProperty<P> where
    P: Send

impl<P> Sync for AttachedProperty<P> where
    P: Sync

impl<P> Unpin for AttachedProperty<P> where
    P: Unpin

impl<P> UnwindSafe for AttachedProperty<P> where
    P: UnwindSafe

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<E> Component for E where
    E: Any
[src]

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

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

impl<T> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,