Enum witx::RecordKind
source · [−]pub enum RecordKind {
Tuple,
Bitflags(IntRepr),
Other,
}
Expand description
Different kinds of records used for hinting various language-specific types.
Variants
Tuple
A tuple where the name of all fields are consecutive integers starting at “0”.
Bitflags(IntRepr)
A record where all fields are bool
s. Currently represented as an
integer with bits set or not set.
Other
All other structures.
Trait Implementations
sourceimpl Clone for RecordKind
impl Clone for RecordKind
sourcefn clone(&self) -> RecordKind
fn clone(&self) -> RecordKind
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 RecordKind
impl Debug for RecordKind
sourceimpl Hash for RecordKind
impl Hash for RecordKind
sourceimpl PartialEq<RecordKind> for RecordKind
impl PartialEq<RecordKind> for RecordKind
sourcefn eq(&self, other: &RecordKind) -> bool
fn eq(&self, other: &RecordKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RecordKind) -> bool
fn ne(&self, other: &RecordKind) -> bool
This method tests for !=
.
impl Eq for RecordKind
impl StructuralEq for RecordKind
impl StructuralPartialEq for RecordKind
Auto Trait Implementations
impl RefUnwindSafe for RecordKind
impl Send for RecordKind
impl Sync for RecordKind
impl Unpin for RecordKind
impl UnwindSafe for RecordKind
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more