pub trait LiveApply {
    // Required method
    fn apply(
        &mut self,
        cx: &mut Cx,
        from: ApplyFrom,
        index: usize,
        nodes: &[LiveNode]
    ) -> usize;

    // Provided method
    fn apply_over(&mut self, cx: &mut Cx, nodes: &[LiveNode]) { ... }
}

Required Methods§

source

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

Provided Methods§

source

fn apply_over(&mut self, cx: &mut Cx, nodes: &[LiveNode])

Implementations on Foreign Types§

source§

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

source§

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

source§

impl LiveApply for i32

source§

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

source§

impl LiveApply for i64

source§

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

source§

impl LiveApply for String

source§

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

source§

impl LiveApply for bool

source§

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

source§

impl LiveApply for f32

source§

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

source§

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

source§

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

source§

impl LiveApply for u32

source§

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

source§

impl LiveApply for usize

source§

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

source§

impl LiveApply for f64

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§