Struct veilid_core::AlignedU64
source · #[repr(C, align(8))]pub struct AlignedU64(/* private fields */);
Expand description
Aligned u64 Required on 32-bit platforms for serialization because Rust aligns u64 on 4 byte boundaries Some zero-copy serialization frameworks also want 8-byte alignment Supports serializing to string for JSON as well, since JSON can’t handle 64-bit numbers to Javascript
Implementations§
Trait Implementations§
source§impl<Rhs: Into<u64>> AddAssign<Rhs> for AlignedU64
impl<Rhs: Into<u64>> AddAssign<Rhs> for AlignedU64
source§fn add_assign(&mut self, rhs: Rhs)
fn add_assign(&mut self, rhs: Rhs)
Performs the
+=
operation. Read moresource§impl Clone for AlignedU64
impl Clone for AlignedU64
source§fn clone(&self) -> AlignedU64
fn clone(&self) -> AlignedU64
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AlignedU64
impl Debug for AlignedU64
source§impl Default for AlignedU64
impl Default for AlignedU64
source§fn default() -> AlignedU64
fn default() -> AlignedU64
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AlignedU64
impl<'de> Deserialize<'de> for AlignedU64
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 Display for AlignedU64
impl Display for AlignedU64
source§impl<Rhs: Into<u64>> DivAssign<Rhs> for AlignedU64
impl<Rhs: Into<u64>> DivAssign<Rhs> for AlignedU64
source§fn div_assign(&mut self, rhs: Rhs)
fn div_assign(&mut self, rhs: Rhs)
Performs the
/=
operation. Read moresource§impl From<AlignedU64> for u64
impl From<AlignedU64> for u64
source§fn from(v: AlignedU64) -> Self
fn from(v: AlignedU64) -> Self
Converts to this type from the input type.
source§impl From<u64> for AlignedU64
impl From<u64> for AlignedU64
source§impl FromStr for AlignedU64
impl FromStr for AlignedU64
source§impl Hash for AlignedU64
impl Hash for AlignedU64
source§impl JsonSchema for AlignedU64
impl JsonSchema for AlignedU64
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§impl<Rhs: Into<u64>> MulAssign<Rhs> for AlignedU64
impl<Rhs: Into<u64>> MulAssign<Rhs> for AlignedU64
source§fn mul_assign(&mut self, rhs: Rhs)
fn mul_assign(&mut self, rhs: Rhs)
Performs the
*=
operation. Read moresource§impl Ord for AlignedU64
impl Ord for AlignedU64
source§fn cmp(&self, other: &AlignedU64) -> Ordering
fn cmp(&self, other: &AlignedU64) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AlignedU64
impl PartialEq for AlignedU64
source§fn eq(&self, other: &AlignedU64) -> bool
fn eq(&self, other: &AlignedU64) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AlignedU64
impl PartialOrd for AlignedU64
source§fn partial_cmp(&self, other: &AlignedU64) -> Option<Ordering>
fn partial_cmp(&self, other: &AlignedU64) -> Option<Ordering>
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 moresource§impl Serialize for AlignedU64
impl Serialize for AlignedU64
source§impl<Rhs: Into<u64>> SubAssign<Rhs> for AlignedU64
impl<Rhs: Into<u64>> SubAssign<Rhs> for AlignedU64
source§fn sub_assign(&mut self, rhs: Rhs)
fn sub_assign(&mut self, rhs: Rhs)
Performs the
-=
operation. Read moreimpl Copy for AlignedU64
impl Eq for AlignedU64
impl StructuralPartialEq for AlignedU64
Auto Trait Implementations§
impl Freeze for AlignedU64
impl RefUnwindSafe for AlignedU64
impl Send for AlignedU64
impl Sync for AlignedU64
impl Unpin for AlignedU64
impl UnwindSafe for AlignedU64
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> CmpAssign for Twhere
T: Ord,
impl<T> CmpAssign for Twhere
T: Ord,
fn min_assign(&mut self, other: T)
fn max_assign(&mut self, other: T)
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.