Struct witx::RecordDatatype
source · [−]pub struct RecordDatatype {
pub kind: RecordKind,
pub members: Vec<RecordMember>,
}
Expand description
A struct-like value with named fields.
Records map to struct
s in most languages where this is a type with a
number of named fields that all have their own particular type. Field order
dictates layout in memory.
Fields
kind: RecordKind
A hint as to what this record might be.
Note that in the future this will only be a hint, not a control of the actual representation itself. At this time though the record layout of bitflags is different from other types.
members: Vec<RecordMember>
A list of named fields for this record.
Implementations
sourceimpl RecordDatatype
impl RecordDatatype
sourceimpl RecordDatatype
impl RecordDatatype
pub fn member_layout(&self) -> Vec<RecordMemberLayout<'_>>
sourceimpl RecordDatatype
impl RecordDatatype
Trait Implementations
sourceimpl Clone for RecordDatatype
impl Clone for RecordDatatype
sourcefn clone(&self) -> RecordDatatype
fn clone(&self) -> RecordDatatype
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecordDatatype
impl Debug for RecordDatatype
sourceimpl Hash for RecordDatatype
impl Hash for RecordDatatype
sourceimpl Layout for RecordDatatype
impl Layout for RecordDatatype
sourceimpl PartialEq<RecordDatatype> for RecordDatatype
impl PartialEq<RecordDatatype> for RecordDatatype
sourcefn eq(&self, other: &RecordDatatype) -> bool
fn eq(&self, other: &RecordDatatype) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RecordDatatype) -> bool
fn ne(&self, other: &RecordDatatype) -> bool
This method tests for !=
.
sourceimpl Representable for RecordDatatype
impl Representable for RecordDatatype
fn representable(&self, by: &Self) -> RepEquality
impl Eq for RecordDatatype
impl StructuralEq for RecordDatatype
impl StructuralPartialEq for RecordDatatype
Auto Trait Implementations
impl RefUnwindSafe for RecordDatatype
impl !Send for RecordDatatype
impl !Sync for RecordDatatype
impl Unpin for RecordDatatype
impl UnwindSafe for RecordDatatype
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more