Skip to main content

TypeIdentifier

Struct TypeIdentifier 

Source
pub struct TypeIdentifier {
    pub _d: u8,
    pub string_sdefn: Option<Box<StringSTypeDefn>>,
    pub string_ldefn: Option<Box<StringLTypeDefn>>,
    pub seq_sdefn: Option<Box<PlainSequenceSElemDefn>>,
    pub seq_ldefn: Option<Box<PlainSequenceLElemDefn>>,
    pub array_sdefn: Option<Box<PlainArraySElemDefn>>,
    pub array_ldefn: Option<Box<PlainArrayLElemDefn>>,
    pub map_sdefn: Option<Box<PlainMapSTypeDefn>>,
    pub map_ldefn: Option<Box<PlainMapLTypeDefn>>,
    pub sc_component_id: Option<Box<StronglyConnectedComponentId>>,
    pub equivalence_hash: Option<Box<EquivalenceHash>>,
    pub extended_defn: Option<Box<ExtendedTypeDefn>>,
}

Fields§

§_d: u8§string_sdefn: Option<Box<StringSTypeDefn>>§string_ldefn: Option<Box<StringLTypeDefn>>§seq_sdefn: Option<Box<PlainSequenceSElemDefn>>§seq_ldefn: Option<Box<PlainSequenceLElemDefn>>§array_sdefn: Option<Box<PlainArraySElemDefn>>§array_ldefn: Option<Box<PlainArrayLElemDefn>>§map_sdefn: Option<Box<PlainMapSTypeDefn>>§map_ldefn: Option<Box<PlainMapLTypeDefn>>§sc_component_id: Option<Box<StronglyConnectedComponentId>>§equivalence_hash: Option<Box<EquivalenceHash>>§extended_defn: Option<Box<ExtendedTypeDefn>>

Implementations§

Source§

impl TypeIdentifier

Source

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

Source

pub fn new_string_sdefn(value: Box<StringSTypeDefn>) -> Self

Source

pub fn is_string_sdefn(&self) -> bool

Source

pub fn new_string_ldefn(value: Box<StringLTypeDefn>) -> Self

Source

pub fn is_string_ldefn(&self) -> bool

Source

pub fn new_seq_sdefn(value: Box<PlainSequenceSElemDefn>) -> Self

Source

pub fn is_seq_sdefn(&self) -> bool

Source

pub fn new_seq_ldefn(value: Box<PlainSequenceLElemDefn>) -> Self

Source

pub fn is_seq_ldefn(&self) -> bool

Source

pub fn new_array_sdefn(value: Box<PlainArraySElemDefn>) -> Self

Source

pub fn is_array_sdefn(&self) -> bool

Source

pub fn new_array_ldefn(value: Box<PlainArrayLElemDefn>) -> Self

Source

pub fn is_array_ldefn(&self) -> bool

Source

pub fn new_map_sdefn(value: Box<PlainMapSTypeDefn>) -> Self

Source

pub fn is_map_sdefn(&self) -> bool

Source

pub fn new_map_ldefn(value: Box<PlainMapLTypeDefn>) -> Self

Source

pub fn is_map_ldefn(&self) -> bool

Source

pub fn new_sc_component_id(value: Box<StronglyConnectedComponentId>) -> Self

Source

pub fn is_sc_component_id(&self) -> bool

Source

pub fn new_equivalence_hash(value: Box<EquivalenceHash>) -> Self

Source

pub fn is_equivalence_hash(&self) -> bool

Source

pub fn new_extended_defn(value: Box<ExtendedTypeDefn>) -> Self

Source

pub fn is_extended_defn(&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.