Skip to main content

MinimalTypeObject

Struct MinimalTypeObject 

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

Implementations§

Source§

impl MinimalTypeObject

Source

pub fn new_alias_type(value: MinimalAliasType) -> Self

Source

pub fn is_alias_type(&self) -> bool

Source

pub fn as_alias_type(&self) -> &MinimalAliasType

Source

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

Source

pub fn into_alias_type(self) -> MinimalAliasType

Source

pub fn new_annotation_type(value: MinimalAnnotationType) -> Self

Source

pub fn is_annotation_type(&self) -> bool

Source

pub fn as_annotation_type(&self) -> &MinimalAnnotationType

Source

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

Source

pub fn into_annotation_type(self) -> MinimalAnnotationType

Source

pub fn new_struct_type(value: MinimalStructType) -> Self

Source

pub fn is_struct_type(&self) -> bool

Source

pub fn as_struct_type(&self) -> &MinimalStructType

Source

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

Source

pub fn into_struct_type(self) -> MinimalStructType

Source

pub fn new_union_type(value: MinimalUnionType) -> Self

Source

pub fn is_union_type(&self) -> bool

Source

pub fn as_union_type(&self) -> &MinimalUnionType

Source

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

Source

pub fn into_union_type(self) -> MinimalUnionType

Source

pub fn new_bitset_type(value: MinimalBitsetType) -> Self

Source

pub fn is_bitset_type(&self) -> bool

Source

pub fn as_bitset_type(&self) -> &MinimalBitsetType

Source

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

Source

pub fn into_bitset_type(self) -> MinimalBitsetType

Source

pub fn new_sequence_type(value: MinimalSequenceType) -> Self

Source

pub fn is_sequence_type(&self) -> bool

Source

pub fn as_sequence_type(&self) -> &MinimalSequenceType

Source

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

Source

pub fn into_sequence_type(self) -> MinimalSequenceType

Source

pub fn new_array_type(value: MinimalArrayType) -> Self

Source

pub fn is_array_type(&self) -> bool

Source

pub fn as_array_type(&self) -> &MinimalArrayType

Source

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

Source

pub fn into_array_type(self) -> MinimalArrayType

Source

pub fn new_map_type(value: MinimalMapType) -> Self

Source

pub fn is_map_type(&self) -> bool

Source

pub fn as_map_type(&self) -> &MinimalMapType

Source

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

Source

pub fn into_map_type(self) -> MinimalMapType

Source

pub fn new_enumerated_type(value: MinimalEnumeratedType) -> Self

Source

pub fn is_enumerated_type(&self) -> bool

Source

pub fn as_enumerated_type(&self) -> &MinimalEnumeratedType

Source

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

Source

pub fn into_enumerated_type(self) -> MinimalEnumeratedType

Source

pub fn new_bitmask_type(value: MinimalBitmaskType) -> Self

Source

pub fn is_bitmask_type(&self) -> bool

Source

pub fn as_bitmask_type(&self) -> &MinimalBitmaskType

Source

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

Source

pub fn into_bitmask_type(self) -> MinimalBitmaskType

Source

pub fn new_extended_type(value: MinimalExtendedType) -> Self

Source

pub fn is_extended_type(&self) -> bool

Source

pub fn as_extended_type(&self) -> &MinimalExtendedType

Source

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

Source

pub fn into_extended_type(self) -> MinimalExtendedType

Source

pub fn tag(&self) -> &u8

Trait Implementations§

Source§

impl Clone for MinimalTypeObject

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 MinimalTypeObject

Source§

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

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

impl Default for MinimalTypeObject

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for MinimalTypeObject

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 MinimalTypeObject

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 MinimalTypeObject

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 MinimalTypeObject

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.