Struct makepad_wasm_bridge::LiveId
source · [−]pub struct LiveId(pub u64);
Tuple Fields
0: u64
Implementations
sourceimpl LiveId
impl LiveId
pub fn empty() -> LiveId
pub fn is_unique(&self) -> bool
pub fn is_empty(&self) -> bool
pub const fn from_bytes(
seed: u64,
id_bytes: &[u8],
start: usize,
end: usize
) -> LiveId
pub const fn from_str_unchecked(id_str: &str) -> LiveId
pub const fn from_str_num_unchecked(id_str: &str, num: u64) -> LiveId
pub const fn from_num_unchecked(seed: u64, num: u64) -> LiveId
pub fn from_str(id_str: &str) -> Result<LiveId, String>
pub fn from_str_num(id_str: &str, num: u64) -> Result<LiveId, String>
pub fn as_string<F, R>(&self, f: F) -> Rwhere
F: FnOnce(Option<&String>) -> R,
pub fn unique() -> LiveId
Trait Implementations
sourceimpl Ord for LiveId
impl Ord for LiveId
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<LiveId> for LiveId
impl PartialOrd<LiveId> for LiveId
sourcefn partial_cmp(&self, other: &LiveId) -> Option<Ordering>
fn partial_cmp(&self, other: &LiveId) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more