pub trait LiveNew: LiveApply {
    // Required methods
    fn new(cx: &mut Cx) -> Self;
    fn live_type_info(cx: &mut Cx) -> LiveTypeInfo;

    // Provided methods
    fn live_design_with(_cx: &mut Cx) { ... }
    fn new_apply(
        cx: &mut Cx,
        from: ApplyFrom,
        index: usize,
        nodes: &[LiveNode]
    ) -> Self
       where Self: Sized { ... }
    fn new_apply_mut_index(
        cx: &mut Cx,
        from: ApplyFrom,
        index: &mut usize,
        nodes: &[LiveNode]
    ) -> Self
       where Self: Sized { ... }
    fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Self
       where Self: Sized { ... }
    fn new_main(cx: &mut Cx) -> Self
       where Self: Sized { ... }
    fn update_main(&mut self, cx: &mut Cx) { ... }
    fn new_local(cx: &mut Cx) -> Self
       where Self: Sized { ... }
    fn new_from_module(
        cx: &mut Cx,
        module_id: LiveModuleId,
        id: LiveId
    ) -> Option<Self>
       where Self: Sized { ... }
    fn update_from_module(
        &mut self,
        cx: &mut Cx,
        module_id: LiveModuleId,
        id: LiveId
    ) { ... }
}

Required Methods§

source

fn new(cx: &mut Cx) -> Self

source

fn live_type_info(cx: &mut Cx) -> LiveTypeInfo

Provided Methods§

source

fn live_design_with(_cx: &mut Cx)

source

fn new_apply( cx: &mut Cx, from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> Selfwhere Self: Sized,

source

fn new_apply_mut_index( cx: &mut Cx, from: ApplyFrom, index: &mut usize, nodes: &[LiveNode] ) -> Selfwhere Self: Sized,

source

fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Selfwhere Self: Sized,

source

fn new_main(cx: &mut Cx) -> Selfwhere Self: Sized,

source

fn update_main(&mut self, cx: &mut Cx)

source

fn new_local(cx: &mut Cx) -> Selfwhere Self: Sized,

source

fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId ) -> Option<Self>where Self: Sized,

source

fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId )

Implementations on Foreign Types§

source§

impl LiveNew for f32

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for bool

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

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

source§

fn new(_cx: &mut Cx) -> Self

source§

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

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

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

source§

fn new(cx: &mut Cx) -> Self

source§

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

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for f64

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for usize

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for String

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for i64

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for i32

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

impl LiveNew for u32

source§

fn live_design_with(_cx: &mut Cx)

source§

fn new(_cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

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

source§

fn new(_cx: &mut Cx) -> Self

source§

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

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

source§

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

source§

fn new(cx: &mut Cx) -> Self

source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Implementors§