Skip to main content

TypeIdentifier

Struct TypeIdentifier 

Source
pub struct TypeIdentifier { /* private fields */ }

Implementations§

Source§

impl TypeIdentifier

Source

pub fn new_string_sdefn(value: StringSTypeDefn) -> Self

Source

pub fn is_string_sdefn(&self) -> bool

Source

pub fn as_string_sdefn(&self) -> &StringSTypeDefn

Source

pub fn as_string_sdefn_mut(&mut self) -> &mut StringSTypeDefn

Source

pub fn into_string_sdefn(self) -> StringSTypeDefn

Source

pub fn new_string_ldefn(value: StringLTypeDefn) -> Self

Source

pub fn is_string_ldefn(&self) -> bool

Source

pub fn as_string_ldefn(&self) -> &StringLTypeDefn

Source

pub fn as_string_ldefn_mut(&mut self) -> &mut StringLTypeDefn

Source

pub fn into_string_ldefn(self) -> StringLTypeDefn

Source

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

Source

pub fn is_seq_sdefn(&self) -> bool

Source

pub fn as_seq_sdefn(&self) -> &Box<PlainSequenceSElemDefn>

Source

pub fn as_seq_sdefn_mut(&mut self) -> &mut Box<PlainSequenceSElemDefn>

Source

pub fn into_seq_sdefn(self) -> Box<PlainSequenceSElemDefn>

Source

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

Source

pub fn is_seq_ldefn(&self) -> bool

Source

pub fn as_seq_ldefn(&self) -> &Box<PlainSequenceLElemDefn>

Source

pub fn as_seq_ldefn_mut(&mut self) -> &mut Box<PlainSequenceLElemDefn>

Source

pub fn into_seq_ldefn(self) -> Box<PlainSequenceLElemDefn>

Source

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

Source

pub fn is_array_sdefn(&self) -> bool

Source

pub fn as_array_sdefn(&self) -> &Box<PlainArraySElemDefn>

Source

pub fn as_array_sdefn_mut(&mut self) -> &mut Box<PlainArraySElemDefn>

Source

pub fn into_array_sdefn(self) -> Box<PlainArraySElemDefn>

Source

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

Source

pub fn is_array_ldefn(&self) -> bool

Source

pub fn as_array_ldefn(&self) -> &Box<PlainArrayLElemDefn>

Source

pub fn as_array_ldefn_mut(&mut self) -> &mut Box<PlainArrayLElemDefn>

Source

pub fn into_array_ldefn(self) -> Box<PlainArrayLElemDefn>

Source

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

Source

pub fn is_map_sdefn(&self) -> bool

Source

pub fn as_map_sdefn(&self) -> &Box<PlainMapSTypeDefn>

Source

pub fn as_map_sdefn_mut(&mut self) -> &mut Box<PlainMapSTypeDefn>

Source

pub fn into_map_sdefn(self) -> Box<PlainMapSTypeDefn>

Source

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

Source

pub fn is_map_ldefn(&self) -> bool

Source

pub fn as_map_ldefn(&self) -> &Box<PlainMapLTypeDefn>

Source

pub fn as_map_ldefn_mut(&mut self) -> &mut Box<PlainMapLTypeDefn>

Source

pub fn into_map_ldefn(self) -> Box<PlainMapLTypeDefn>

Source

pub fn new_sc_component_id(value: StronglyConnectedComponentId) -> Self

Source

pub fn is_sc_component_id(&self) -> bool

Source

pub fn as_sc_component_id(&self) -> &StronglyConnectedComponentId

Source

pub fn as_sc_component_id_mut(&mut self) -> &mut StronglyConnectedComponentId

Source

pub fn into_sc_component_id(self) -> StronglyConnectedComponentId

Source

pub fn new_equivalence_hash(value: EquivalenceHash) -> Self

Source

pub fn is_equivalence_hash(&self) -> bool

Source

pub fn as_equivalence_hash(&self) -> &EquivalenceHash

Source

pub fn as_equivalence_hash_mut(&mut self) -> &mut EquivalenceHash

Source

pub fn into_equivalence_hash(self) -> EquivalenceHash

Source

pub fn new_extended_defn(value: ExtendedTypeDefn) -> Self

Source

pub fn is_extended_defn(&self) -> bool

Source

pub fn as_extended_defn(&self) -> &ExtendedTypeDefn

Source

pub fn as_extended_defn_mut(&mut self) -> &mut ExtendedTypeDefn

Source

pub fn into_extended_defn(self) -> ExtendedTypeDefn

Source

pub fn tag(&self) -> &u8

Trait Implementations§

Source§

impl Clone for TypeIdentifier

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TypeIdentifier

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TypeIdentifier

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TypeIdentifier

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Drop for TypeIdentifier

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl PartialEq for TypeIdentifier

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TypeIdentifier

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,