pub struct GroupId(pub u64);Tuple Fields§
§0: u64Implementations§
Source§impl GroupId
impl GroupId
pub fn new(id: u64) -> Self
pub fn value(&self) -> u64
Sourcepub fn from_hex_string(hex_str: &str) -> Option<Self>
pub fn from_hex_string(hex_str: &str) -> Option<Self>
Create GroupId from hex string (e.g., “deadbeef”)
Returns None if the string is not valid hex or too large for u64.
Sourcepub fn new_random() -> Self
pub fn new_random() -> Self
Generate a random GroupId using current timestamp + random
Sourcepub fn to_hex_string(&self) -> String
pub fn to_hex_string(&self) -> String
Format GID as hex string (lowercase, no prefix)
Trait Implementations§
impl Copy for GroupId
impl Eq for GroupId
impl StructuralPartialEq for GroupId
Auto Trait Implementations§
impl Freeze for GroupId
impl RefUnwindSafe for GroupId
impl Send for GroupId
impl Sync for GroupId
impl Unpin for GroupId
impl UnsafeUnpin for GroupId
impl UnwindSafe for GroupId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.