Skip to main content

CompleteTypeObject

Struct CompleteTypeObject 

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

Implementations§

Source§

impl CompleteTypeObject

Source

pub fn new_alias_type(value: CompleteAliasType) -> Self

Source

pub fn is_alias_type(&self) -> bool

Source

pub fn as_alias_type(&self) -> &CompleteAliasType

Source

pub fn as_alias_type_mut(&mut self) -> &mut CompleteAliasType

Source

pub fn into_alias_type(self) -> CompleteAliasType

Source

pub fn new_annotation_type(value: CompleteAnnotationType) -> Self

Source

pub fn is_annotation_type(&self) -> bool

Source

pub fn as_annotation_type(&self) -> &CompleteAnnotationType

Source

pub fn as_annotation_type_mut(&mut self) -> &mut CompleteAnnotationType

Source

pub fn into_annotation_type(self) -> CompleteAnnotationType

Source

pub fn new_struct_type(value: CompleteStructType) -> Self

Source

pub fn is_struct_type(&self) -> bool

Source

pub fn as_struct_type(&self) -> &CompleteStructType

Source

pub fn as_struct_type_mut(&mut self) -> &mut CompleteStructType

Source

pub fn into_struct_type(self) -> CompleteStructType

Source

pub fn new_union_type(value: CompleteUnionType) -> Self

Source

pub fn is_union_type(&self) -> bool

Source

pub fn as_union_type(&self) -> &CompleteUnionType

Source

pub fn as_union_type_mut(&mut self) -> &mut CompleteUnionType

Source

pub fn into_union_type(self) -> CompleteUnionType

Source

pub fn new_bitset_type(value: CompleteBitsetType) -> Self

Source

pub fn is_bitset_type(&self) -> bool

Source

pub fn as_bitset_type(&self) -> &CompleteBitsetType

Source

pub fn as_bitset_type_mut(&mut self) -> &mut CompleteBitsetType

Source

pub fn into_bitset_type(self) -> CompleteBitsetType

Source

pub fn new_sequence_type(value: CompleteSequenceType) -> Self

Source

pub fn is_sequence_type(&self) -> bool

Source

pub fn as_sequence_type(&self) -> &CompleteSequenceType

Source

pub fn as_sequence_type_mut(&mut self) -> &mut CompleteSequenceType

Source

pub fn into_sequence_type(self) -> CompleteSequenceType

Source

pub fn new_array_type(value: CompleteArrayType) -> Self

Source

pub fn is_array_type(&self) -> bool

Source

pub fn as_array_type(&self) -> &CompleteArrayType

Source

pub fn as_array_type_mut(&mut self) -> &mut CompleteArrayType

Source

pub fn into_array_type(self) -> CompleteArrayType

Source

pub fn new_map_type(value: CompleteMapType) -> Self

Source

pub fn is_map_type(&self) -> bool

Source

pub fn as_map_type(&self) -> &CompleteMapType

Source

pub fn as_map_type_mut(&mut self) -> &mut CompleteMapType

Source

pub fn into_map_type(self) -> CompleteMapType

Source

pub fn new_enumerated_type(value: CompleteEnumeratedType) -> Self

Source

pub fn is_enumerated_type(&self) -> bool

Source

pub fn as_enumerated_type(&self) -> &CompleteEnumeratedType

Source

pub fn as_enumerated_type_mut(&mut self) -> &mut CompleteEnumeratedType

Source

pub fn into_enumerated_type(self) -> CompleteEnumeratedType

Source

pub fn new_bitmask_type(value: CompleteBitmaskType) -> Self

Source

pub fn is_bitmask_type(&self) -> bool

Source

pub fn as_bitmask_type(&self) -> &CompleteBitmaskType

Source

pub fn as_bitmask_type_mut(&mut self) -> &mut CompleteBitmaskType

Source

pub fn into_bitmask_type(self) -> CompleteBitmaskType

Source

pub fn new_extended_type(value: CompleteExtendedType) -> Self

Source

pub fn is_extended_type(&self) -> bool

Source

pub fn as_extended_type(&self) -> &CompleteExtendedType

Source

pub fn as_extended_type_mut(&mut self) -> &mut CompleteExtendedType

Source

pub fn into_extended_type(self) -> CompleteExtendedType

Source

pub fn tag(&self) -> &u8

Trait Implementations§

Source§

impl Clone for CompleteTypeObject

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 CompleteTypeObject

Source§

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

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

impl Default for CompleteTypeObject

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for CompleteTypeObject

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 CompleteTypeObject

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 CompleteTypeObject

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for CompleteTypeObject

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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.