Trait lignin::auto_safety::Align[][src]

pub trait Align<T: Vdom>: Vdom {
    fn align(self) -> T { ... }
fn align_ref(&self) -> &T { ... } }
Expand description

Contextually thread-binds an instance, or not. Use only without qualification.

This trait acts as Into on and between variants of the same Vdom type, but without raising useless_conversion warnings.

See module documentation for when to use this trait and when it’s unnecessary.

Provided methods

fn align(self) -> T[src]

Contextually thread-binds an instance, or not. Use only without qualification.

fn align_ref(&self) -> &T[src]

Contextually thread-binds a reference, or not. Use only without qualification.

Implementors

impl<'a, S1, S2> Align<Node<'a, S2>> for Node<'a, S1> where
    S1: ThreadSafety + Into<S2>,
    S2: ThreadSafety
[src]

Not derived from the Into constraints on $Name directly since those are too broad.

impl<'a, S1, S2> Align<Element<'a, S2>> for Element<'a, S1> where
    S1: ThreadSafety + Into<S2>,
    S2: ThreadSafety
[src]

Not derived from the Into constraints on $Name directly since those are too broad.

impl<'a, S1, S2> Align<EventBinding<'a, S2>> for EventBinding<'a, S1> where
    S1: ThreadSafety + Into<S2>,
    S2: ThreadSafety
[src]

Not derived from the Into constraints on $Name directly since those are too broad.

impl<'a, S1, S2> Align<ReorderableFragment<'a, S2>> for ReorderableFragment<'a, S1> where
    S1: ThreadSafety + Into<S2>,
    S2: ThreadSafety
[src]

Not derived from the Into constraints on $Name directly since those are too broad.

impl<S1, S2, C> Align<CallbackRef<S2, C>> for CallbackRef<S1, C> where
    C: CallbackSignature,
    S1: ThreadSafety + Into<S2>,
    S2: ThreadSafety
[src]