pub struct DatatypeRef {
pub id: u32,
pub size: usize,
}Expand description
A lightweight description of a datatype: a stable id and the size in bytes of one element.
Fields§
§id: u32Stable identifier used for on-the-wire type checking.
size: usizeSize of a single element in bytes.
Trait Implementations§
Source§impl AsRaw for DatatypeRef
impl AsRaw for DatatypeRef
Source§impl Clone for DatatypeRef
impl Clone for DatatypeRef
Source§fn clone(&self) -> DatatypeRef
fn clone(&self) -> DatatypeRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatatypeRef
Source§impl Debug for DatatypeRef
impl Debug for DatatypeRef
impl Eq for DatatypeRef
Source§impl PartialEq for DatatypeRef
impl PartialEq for DatatypeRef
Source§fn eq(&self, other: &DatatypeRef) -> bool
fn eq(&self, other: &DatatypeRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DatatypeRef
Auto Trait Implementations§
impl Freeze for DatatypeRef
impl RefUnwindSafe for DatatypeRef
impl Send for DatatypeRef
impl Sync for DatatypeRef
impl Unpin for DatatypeRef
impl UnsafeUnpin for DatatypeRef
impl UnwindSafe for DatatypeRef
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