Struct LiveId

Source
pub struct LiveId(pub u64);

Tuple Fields§

§0: u64

Implementations§

Source§

impl LiveId

Source

pub fn empty() -> LiveId

Source

pub fn from_lo_hi(lo: u32, hi: u32) -> LiveId

Source

pub fn lo(&self) -> u32

Source

pub fn hi(&self) -> u32

Source

pub fn seeded() -> LiveId

Source

pub fn is_unique(&self) -> bool

Source

pub fn is_ident(&self) -> bool

Source

pub fn is_empty(&self) -> bool

Source

pub fn get_value(&self) -> u64

Source

pub const fn from_bytes( seed: u64, id_bytes: &[u8], start: usize, end: usize, ) -> LiveId

Source

pub fn add(&self, what: u64) -> LiveId

Source

pub fn xor(&self, what: u64) -> LiveId

Source

pub fn sub(&self, what: u64) -> LiveId

Source

pub const fn from_str(id_str: &str) -> LiveId

Source

pub const fn from_bytes_lc( seed: u64, id_bytes: &[u8], start: usize, end: usize, ) -> LiveId

Source

pub const fn from_str_lc(id_str: &str) -> LiveId

Source

pub const fn str_append(self, id_str: &str) -> LiveId

Source

pub const fn bytes_append(self, bytes: &[u8]) -> LiveId

Source

pub const fn id_append(self, id: LiveId) -> LiveId

Source

pub const fn from_str_num(id_str: &str, num: u64) -> LiveId

Source

pub const fn from_num(seed: u64, num: u64) -> LiveId

Source

pub fn from_str_with_lut(id_str: &str) -> Result<LiveId, String>

Source

pub fn from_str_with_intern(id_str: &str, intern: InternLiveId) -> LiveId

Source

pub fn from_str_num_with_lut(id_str: &str, num: u64) -> Result<LiveId, String>

Source

pub fn as_string<F, R>(&self, f: F) -> R
where F: FnOnce(Option<&str>) -> R,

Source

pub fn unique() -> LiveId

Trait Implementations§

Source§

impl Clone for LiveId

Source§

fn clone(&self) -> LiveId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DeBin for LiveId

Source§

impl DeJson for LiveId

Source§

impl DeRon for LiveId

Source§

fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result<LiveId, DeRonErr>

Source§

fn deserialize_ron(input: &str) -> Result<Self, DeRonErr>

Source§

impl Debug for LiveId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for LiveId

Source§

fn default() -> LiveId

Returns the “default value” for a type. Read more
Source§

impl Display for LiveId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<LiveId> for AudioDeviceId

Source§

fn from(live_id: LiveId) -> AudioDeviceId

Converts to this type from the input type.
Source§

impl From<LiveId> for DigitId

Source§

fn from(live_id: LiveId) -> DigitId

Converts to this type from the input type.
Source§

impl From<LiveId> for MidiPortId

Source§

fn from(live_id: LiveId) -> MidiPortId

Converts to this type from the input type.
Source§

impl From<LiveId> for VideoFormatId

Source§

fn from(live_id: LiveId) -> VideoFormatId

Converts to this type from the input type.
Source§

impl From<LiveId> for VideoInputId

Source§

fn from(live_id: LiveId) -> VideoInputId

Converts to this type from the input type.
Source§

impl Hash for LiveId

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LiveApply for LiveId

Source§

fn apply( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

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

Source§

impl LiveHook for LiveId

Source§

fn apply_value_unknown( &mut self, cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn skip_apply_animator( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], ) -> bool

Source§

fn apply_value_instance( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn skip_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], ) -> Option<usize>

Source§

fn before_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], )

Source§

fn after_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], )

Source§

fn after_apply_from(&mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl LiveIdAsProp for LiveId

Source§

impl LiveNew for LiveId

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§

fn new_apply( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source§

fn new_apply_over(cx: &mut Cx, nodes: &[LiveNode]) -> Self
where Self: Sized,

Source§

fn new_apply_mut_index( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: &mut usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source§

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

Source§

fn update_from_ptr(&mut self, cx: &mut Cx, live_ptr: Option<LivePtr>)

Source§

fn update_from_ptr_with_scope( &mut self, cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, )

Source§

fn new_from_ptr_with_scope( cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, ) -> Self
where Self: Sized,

Source§

fn new_main(cx: &mut Cx) -> Option<Self>
where Self: Sized,

Source§

fn register_main_module(cx: &mut Cx)

Source§

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

Source§

fn new_local(cx: &mut Cx) -> Self
where 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, )

Source§

impl LiveRead for LiveId

Source§

fn live_read_to(&self, id: LiveId, out: &mut Vec<LiveNode>)

Source§

fn live_read(&self) -> Vec<LiveNode>

Source§

impl LowerHex for LiveId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Ord for LiveId

Source§

fn cmp(&self, other: &LiveId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LiveId

Source§

fn eq(&self, other: &LiveId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for LiveId

Source§

fn partial_cmp(&self, other: &LiveId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl SerBin for LiveId

Source§

fn ser_bin(&self, s: &mut Vec<u8>)

Source§

fn serialize_bin(&self) -> Vec<u8>

Source§

impl SerJson for LiveId

Source§

impl SerRon for LiveId

Source§

fn ser_ron(&self, _d: usize, s: &mut SerRonState)

Source§

fn serialize_ron(&self) -> String

Source§

impl ToLiveValue for LiveId

Source§

impl Copy for LiveId

Source§

impl Eq for LiveId

Source§

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
where T: 'static + Debug + ?Sized,

Source§

fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Source§

fn ref_cast_type_id(&self) -> TypeId
where Self: 'static,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.