pub struct U64Split {
pub value: u64,
pub lo: u32,
pub hi: u32,
}Expand description
A 64-bit value with its (lo, hi) u32 halves: Dart / TypeScript spell only the halves, so
no integer literal above 2^53 ever reaches a JavaScript number.
Fields§
§value: u64§lo: u32§hi: u32Implementations§
Source§impl U64Split
impl U64Split
pub const fn new(value: u64) -> Self
Sourcepub fn hex(&self) -> HexLiteral
pub fn hex(&self) -> HexLiteral
0x0123456789ABCDEF
Sourcepub fn lo_hex(&self) -> HexLiteral
pub fn lo_hex(&self) -> HexLiteral
0x89ABCDEF
Sourcepub fn hi_hex(&self) -> HexLiteral
pub fn hi_hex(&self) -> HexLiteral
0x01234567
Trait Implementations§
impl Copy for U64Split
impl Eq for U64Split
impl StructuralPartialEq for U64Split
Auto Trait Implementations§
impl Forget for U64Split
impl Freeze for U64Split
impl Move for U64Split
impl RefUnwindSafe for U64Split
impl Send for U64Split
impl Sync for U64Split
impl Unpin for U64Split
impl UnsafeUnpin for U64Split
impl UnwindSafe for U64Split
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