Skip to main content

CompleteTypeObject

Struct CompleteTypeObject 

Source
pub struct CompleteTypeObject {
    pub _d: u8,
    pub alias_type: Option<Box<CompleteAliasType>>,
    pub annotation_type: Option<Box<CompleteAnnotationType>>,
    pub struct_type: Option<Box<CompleteStructType>>,
    pub union_type: Option<Box<CompleteUnionType>>,
    pub bitset_type: Option<Box<CompleteBitsetType>>,
    pub sequence_type: Option<Box<CompleteSequenceType>>,
    pub array_type: Option<Box<CompleteArrayType>>,
    pub map_type: Option<Box<CompleteMapType>>,
    pub enumerated_type: Option<Box<CompleteEnumeratedType>>,
    pub bitmask_type: Option<Box<CompleteBitmaskType>>,
    pub extended_type: Option<Box<CompleteExtendedType>>,
}

Fields§

§_d: u8§alias_type: Option<Box<CompleteAliasType>>§annotation_type: Option<Box<CompleteAnnotationType>>§struct_type: Option<Box<CompleteStructType>>§union_type: Option<Box<CompleteUnionType>>§bitset_type: Option<Box<CompleteBitsetType>>§sequence_type: Option<Box<CompleteSequenceType>>§array_type: Option<Box<CompleteArrayType>>§map_type: Option<Box<CompleteMapType>>§enumerated_type: Option<Box<CompleteEnumeratedType>>§bitmask_type: Option<Box<CompleteBitmaskType>>§extended_type: Option<Box<CompleteExtendedType>>

Implementations§

Source§

impl CompleteTypeObject

Source

pub const SERIALIZE_KIND: SerializeKind = xidl_xcdr::SerializeKind::Cdr

Source

pub fn new_alias_type(value: Box<CompleteAliasType>) -> Self

Source

pub fn is_alias_type(&self) -> bool

Source

pub fn new_annotation_type(value: Box<CompleteAnnotationType>) -> Self

Source

pub fn is_annotation_type(&self) -> bool

Source

pub fn new_struct_type(value: Box<CompleteStructType>) -> Self

Source

pub fn is_struct_type(&self) -> bool

Source

pub fn new_union_type(value: Box<CompleteUnionType>) -> Self

Source

pub fn is_union_type(&self) -> bool

Source

pub fn new_bitset_type(value: Box<CompleteBitsetType>) -> Self

Source

pub fn is_bitset_type(&self) -> bool

Source

pub fn new_sequence_type(value: Box<CompleteSequenceType>) -> Self

Source

pub fn is_sequence_type(&self) -> bool

Source

pub fn new_array_type(value: Box<CompleteArrayType>) -> Self

Source

pub fn is_array_type(&self) -> bool

Source

pub fn new_map_type(value: Box<CompleteMapType>) -> Self

Source

pub fn is_map_type(&self) -> bool

Source

pub fn new_enumerated_type(value: Box<CompleteEnumeratedType>) -> Self

Source

pub fn is_enumerated_type(&self) -> bool

Source

pub fn new_bitmask_type(value: Box<CompleteBitmaskType>) -> Self

Source

pub fn is_bitmask_type(&self) -> bool

Source

pub fn new_extended_type(value: Box<CompleteExtendedType>) -> Self

Source

pub fn is_extended_type(&self) -> bool

Source

pub fn tag(&self) -> &u8

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.