#[non_exhaustive]pub enum CompleteTypeObject {
Alias(CompleteAliasType),
Annotation(CompleteAnnotationType),
Struct(CompleteStructType),
Union(CompleteUnionType),
Bitset(CompleteBitsetType),
Sequence(CompleteSequenceType),
Array(CompleteArrayType),
Map(CompleteMapType),
Enumerated(CompleteEnumeratedType),
Bitmask(CompleteBitmaskType),
}Expand description
CompleteTypeObject (§7.3.4.4).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Alias(CompleteAliasType)
alias<T>.
Annotation(CompleteAnnotationType)
annotation @X(...).
Struct(CompleteStructType)
struct.
Union(CompleteUnionType)
union.
Bitset(CompleteBitsetType)
bitset.
Sequence(CompleteSequenceType)
sequence<T>.
Array(CompleteArrayType)
T[N].
Map(CompleteMapType)
map<K, V>.
Enumerated(CompleteEnumeratedType)
enum.
Bitmask(CompleteBitmaskType)
bitmask.
Implementations§
Source§impl CompleteTypeObject
impl CompleteTypeObject
Sourcepub const fn discriminator(&self) -> u8
pub const fn discriminator(&self) -> u8
Discriminator-Byte.
Sourcepub fn encode_into(&self, w: &mut BufferWriter) -> Result<(), EncodeError>
pub fn encode_into(&self, w: &mut BufferWriter) -> Result<(), EncodeError>
Sourcepub fn decode_from(r: &mut BufferReader<'_>) -> Result<Self, TypeCodecError>
pub fn decode_from(r: &mut BufferReader<'_>) -> Result<Self, TypeCodecError>
Trait Implementations§
Source§impl Clone for CompleteTypeObject
impl Clone for CompleteTypeObject
Source§fn clone(&self) -> CompleteTypeObject
fn clone(&self) -> CompleteTypeObject
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 moreSource§impl Debug for CompleteTypeObject
impl Debug for CompleteTypeObject
Source§impl PartialEq for CompleteTypeObject
impl PartialEq for CompleteTypeObject
Source§fn eq(&self, other: &CompleteTypeObject) -> bool
fn eq(&self, other: &CompleteTypeObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CompleteTypeObject
impl StructuralPartialEq for CompleteTypeObject
Auto Trait Implementations§
impl Freeze for CompleteTypeObject
impl RefUnwindSafe for CompleteTypeObject
impl Send for CompleteTypeObject
impl Sync for CompleteTypeObject
impl Unpin for CompleteTypeObject
impl UnsafeUnpin for CompleteTypeObject
impl UnwindSafe for CompleteTypeObject
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