pub struct Luks2U64(pub u64);Expand description
A 64-bit unsigned integer that is represented as a decimal string in JSON.
This is necessary because JSON’s standard number type is a double-precision floating point value (IEEE 754), which cannot accurately represent the full range of 64-bit integers without losing precision. By encoding large integers as strings, LUKS2 ensures that values like offsets and sizes remain exact.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Luks2U64
impl<'de> Deserialize<'de> for Luks2U64
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Luks2U64
impl Ord for Luks2U64
Source§impl PartialOrd for Luks2U64
impl PartialOrd for Luks2U64
impl Copy for Luks2U64
impl Eq for Luks2U64
impl StructuralPartialEq for Luks2U64
Auto Trait Implementations§
impl Freeze for Luks2U64
impl RefUnwindSafe for Luks2U64
impl Send for Luks2U64
impl Sync for Luks2U64
impl Unpin for Luks2U64
impl UnsafeUnpin for Luks2U64
impl UnwindSafe for Luks2U64
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