Trait LiveHook

Source
pub trait LiveHook {
    // Provided methods
    fn before_live_design(_cx: &mut Cx) { ... }
    fn apply_value_unknown(
        &mut self,
        cx: &mut Cx,
        _apply_from: ApplyFrom,
        index: usize,
        nodes: &[LiveNode],
    ) -> usize { ... }
    fn apply_value_instance(
        &mut self,
        _cx: &mut Cx,
        _apply_from: ApplyFrom,
        index: usize,
        nodes: &[LiveNode],
    ) -> usize { ... }
    fn skip_apply(
        &mut self,
        _cx: &mut Cx,
        _apply_from: ApplyFrom,
        _index: usize,
        _nodes: &[LiveNode],
    ) -> Option<usize> { ... }
    fn before_apply(
        &mut self,
        _cx: &mut Cx,
        _apply_from: ApplyFrom,
        _index: usize,
        _nodes: &[LiveNode],
    ) { ... }
    fn after_apply(
        &mut self,
        _cx: &mut Cx,
        _apply_from: ApplyFrom,
        _index: usize,
        _nodes: &[LiveNode],
    ) { ... }
    fn after_apply_from(&mut self, cx: &mut Cx, apply_from: ApplyFrom) { ... }
    fn after_new_from_doc(&mut self, _cx: &mut Cx) { ... }
    fn after_new_before_apply(&mut self, _cx: &mut Cx) { ... }
}

Provided Methods§

Source

fn before_live_design(_cx: &mut Cx)

Source

fn apply_value_unknown( &mut self, cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode], ) -> usize

Source

fn apply_value_instance( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode], ) -> usize

Source

fn skip_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode], ) -> Option<usize>

Source

fn before_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode], )

Source

fn after_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode], )

Source

fn after_apply_from(&mut self, cx: &mut Cx, apply_from: ApplyFrom)

Source

fn after_new_from_doc(&mut self, _cx: &mut Cx)

Source

fn after_new_before_apply(&mut self, _cx: &mut Cx)

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 LiveHook for bool

Source§

impl LiveHook for f32

Source§

impl LiveHook for f64

Source§

impl LiveHook for i32

Source§

impl LiveHook for i64

Source§

impl LiveHook for u32

Source§

impl LiveHook for usize

Source§

impl LiveHook for String

Source§

impl<T> LiveHook for Option<T>
where T: LiveApply + LiveNew + 'static,

Source§

impl<T> LiveHook for Arc<T>
where T: LiveApply + LiveNew + 'static + LiveAtomic,

Source§

impl<T> LiveHook for Vec<T>
where T: LiveApply + LiveNew + 'static,

Source§

impl<T, const N: usize> LiveHook for [T; N]
where T: LiveApply + LiveNew + 'static,

Implementors§