pub struct LiveId(pub u64);
Tuple Fields§
§0: u64
Implementations§
Source§impl LiveId
impl LiveId
pub fn empty() -> LiveId
pub fn from_lo_hi(lo: u32, hi: u32) -> LiveId
pub fn lo(&self) -> u32
pub fn hi(&self) -> u32
pub fn seeded() -> LiveId
pub fn is_unique(&self) -> bool
pub fn is_ident(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn get_value(&self) -> u64
pub const fn from_bytes( seed: u64, id_bytes: &[u8], start: usize, end: usize, ) -> LiveId
pub fn add(&self, what: u64) -> LiveId
pub fn xor(&self, what: u64) -> LiveId
pub fn sub(&self, what: u64) -> LiveId
pub const fn from_str(id_str: &str) -> LiveId
pub const fn from_bytes_lc( seed: u64, id_bytes: &[u8], start: usize, end: usize, ) -> LiveId
pub const fn from_str_lc(id_str: &str) -> LiveId
pub const fn str_append(self, id_str: &str) -> LiveId
pub const fn bytes_append(self, bytes: &[u8]) -> LiveId
pub const fn id_append(self, id: LiveId) -> LiveId
pub const fn from_str_num(id_str: &str, num: u64) -> LiveId
pub const fn from_num(seed: u64, num: u64) -> LiveId
pub fn from_str_with_lut(id_str: &str) -> Result<LiveId, String>
pub fn from_str_with_intern(id_str: &str, intern: InternLiveId) -> LiveId
pub fn from_str_num_with_lut(id_str: &str, num: u64) -> Result<LiveId, String>
pub fn as_string<F, R>(&self, f: F) -> R
pub fn unique() -> LiveId
Trait Implementations§
Source§impl From<LiveId> for AudioDeviceId
impl From<LiveId> for AudioDeviceId
Source§fn from(live_id: LiveId) -> AudioDeviceId
fn from(live_id: LiveId) -> AudioDeviceId
Converts to this type from the input type.
Source§impl From<LiveId> for MidiPortId
impl From<LiveId> for MidiPortId
Source§fn from(live_id: LiveId) -> MidiPortId
fn from(live_id: LiveId) -> MidiPortId
Converts to this type from the input type.
Source§impl From<LiveId> for VideoFormatId
impl From<LiveId> for VideoFormatId
Source§fn from(live_id: LiveId) -> VideoFormatId
fn from(live_id: LiveId) -> VideoFormatId
Converts to this type from the input type.
Source§impl From<LiveId> for VideoInputId
impl From<LiveId> for VideoInputId
Source§fn from(live_id: LiveId) -> VideoInputId
fn from(live_id: LiveId) -> VideoInputId
Converts to this type from the input type.
Source§impl LiveHook for LiveId
impl LiveHook for LiveId
fn apply_value_unknown( &mut self, cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize
fn skip_apply_animator( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], ) -> bool
fn apply_value_instance( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize
fn skip_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], ) -> Option<usize>
fn before_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], )
fn after_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], )
fn after_apply_from(&mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>)
fn after_new_from_doc(&mut self, _cx: &mut Cx)
fn after_update_from_doc(&mut self, _cx: &mut Cx)
fn after_apply_from_doc(&mut self, _cx: &mut Cx)
fn after_new_before_apply(&mut self, _cx: &mut Cx)
Source§impl LiveIdAsProp for LiveId
impl LiveIdAsProp for LiveId
Source§impl LiveNew for LiveId
impl LiveNew for LiveId
fn live_design_with(_cx: &mut Cx)
fn new(_cx: &mut Cx) -> Self
fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo
fn new_apply(
cx: &mut Cx,
apply: &mut Apply<'_, '_, '_>,
index: usize,
nodes: &[LiveNode],
) -> Selfwhere
Self: Sized,
fn new_apply_over(cx: &mut Cx, nodes: &[LiveNode]) -> Selfwhere
Self: Sized,
fn new_apply_mut_index(
cx: &mut Cx,
apply: &mut Apply<'_, '_, '_>,
index: &mut usize,
nodes: &[LiveNode],
) -> Selfwhere
Self: Sized,
fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Selfwhere
Self: Sized,
fn update_from_ptr(&mut self, cx: &mut Cx, live_ptr: Option<LivePtr>)
fn update_from_ptr_with_scope( &mut self, cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, )
fn new_from_ptr_with_scope(
cx: &mut Cx,
live_ptr: Option<LivePtr>,
scope: &mut Scope<'_, '_>,
) -> Selfwhere
Self: Sized,
fn new_main(cx: &mut Cx) -> Option<Self>where
Self: Sized,
fn register_main_module(cx: &mut Cx)
fn update_main(&mut self, cx: &mut Cx)
fn new_local(cx: &mut Cx) -> Selfwhere
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, )
Source§impl Ord for LiveId
impl Ord for LiveId
Source§impl PartialOrd for LiveId
impl PartialOrd for LiveId
Source§impl SerJson for LiveId
impl SerJson for LiveId
fn ser_json(&self, d: usize, s: &mut SerJsonState)
fn serialize_json(&self) -> String
Source§impl SerRon for LiveId
impl SerRon for LiveId
fn ser_ron(&self, _d: usize, s: &mut SerRonState)
fn serialize_ron(&self) -> String
Source§impl ToLiveValue for LiveId
impl ToLiveValue for LiveId
fn to_live_value(&self) -> LiveValue
impl Copy for LiveId
impl Eq for LiveId
impl StructuralPartialEq for LiveId
Auto Trait Implementations§
impl Freeze for LiveId
impl RefUnwindSafe for LiveId
impl Send for LiveId
impl Sync for LiveId
impl Unpin for LiveId
impl UnwindSafe for LiveId
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more