Struct makepad_wasm_bridge::LiveId
source · 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 const fn from_str(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_num_with_lut(id_str: &str, num: u64) -> Result<LiveId, String>
pub fn as_string<F, R>(&self, f: F) -> Rwhere F: FnOnce(Option<&str>) -> R,
pub fn unique() -> LiveId
Trait Implementations§
source§impl Ord for LiveId
impl Ord for LiveId
source§impl PartialEq<LiveId> for LiveId
impl PartialEq<LiveId> for LiveId
source§impl PartialOrd<LiveId> for LiveId
impl PartialOrd<LiveId> for LiveId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LiveId
impl Eq for LiveId
impl StructuralEq for LiveId
impl StructuralPartialEq for LiveId
Auto Trait Implementations§
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> 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