Enum Type

Source
pub enum Type {
    Basic(BasicDetail),
    Array(ArrayDetail),
    Slice(SliceDetail),
    Struct(StructDetail),
    Pointer(PointerDetail),
    Tuple(TupleDetail),
    Signature(SignatureDetail),
    Interface(InterfaceDetail),
    Map(MapDetail),
    Chan(ChanDetail),
    Named(NamedDetail),
}

Variants§

§

Basic(BasicDetail)

§

Array(ArrayDetail)

§

Slice(SliceDetail)

§

Struct(StructDetail)

§

Pointer(PointerDetail)

§

Tuple(TupleDetail)

§

Signature(SignatureDetail)

§

Interface(InterfaceDetail)

§

Map(MapDetail)

§

Chan(ChanDetail)

§

Named(NamedDetail)

Implementations§

Source§

impl Type

Source

pub fn try_as_basic(&self) -> Option<&BasicDetail>

Source

pub fn try_as_array(&self) -> Option<&ArrayDetail>

Source

pub fn try_as_array_mut(&mut self) -> Option<&mut ArrayDetail>

Source

pub fn try_as_slice(&self) -> Option<&SliceDetail>

Source

pub fn try_as_struct(&self) -> Option<&StructDetail>

Source

pub fn try_as_pointer(&self) -> Option<&PointerDetail>

Source

pub fn try_as_tuple(&self) -> Option<&TupleDetail>

Source

pub fn try_as_tuple_mut(&mut self) -> Option<&mut TupleDetail>

Source

pub fn try_as_signature(&self) -> Option<&SignatureDetail>

Source

pub fn try_as_signature_mut(&mut self) -> Option<&mut SignatureDetail>

Source

pub fn try_as_interface(&self) -> Option<&InterfaceDetail>

Source

pub fn try_as_interface_mut(&mut self) -> Option<&mut InterfaceDetail>

Source

pub fn try_as_map(&self) -> Option<&MapDetail>

Source

pub fn try_as_chan(&self) -> Option<&ChanDetail>

Source

pub fn try_as_chan_mut(&mut self) -> Option<&mut ChanDetail>

Source

pub fn try_as_named(&self) -> Option<&NamedDetail>

Source

pub fn try_as_named_mut(&mut self) -> Option<&mut NamedDetail>

Source

pub fn underlying(&self) -> Option<TypeKey>

Source

pub fn underlying_val<'a>(&'a self, objs: &'a TCObjects) -> &'a Type

Source

pub fn is_named(&self) -> bool

Source

pub fn is_invalid(&self, objs: &TCObjects) -> bool

Source

pub fn is_boolean(&self, objs: &TCObjects) -> bool

Source

pub fn is_integer(&self, objs: &TCObjects) -> bool

Source

pub fn is_unsigned(&self, objs: &TCObjects) -> bool

Source

pub fn is_float(&self, objs: &TCObjects) -> bool

Source

pub fn is_complex(&self, objs: &TCObjects) -> bool

Source

pub fn is_numeric(&self, objs: &TCObjects) -> bool

Source

pub fn is_string(&self, objs: &TCObjects) -> bool

Source

pub fn is_typed(&self, objs: &TCObjects) -> bool

Source

pub fn is_untyped(&self, objs: &TCObjects) -> bool

Source

pub fn is_ordered(&self, objs: &TCObjects) -> bool

Source

pub fn is_const_type(&self, objs: &TCObjects) -> bool

Source

pub fn is_interface(&self, objs: &TCObjects) -> bool

Source

pub fn has_nil(&self, objs: &TCObjects) -> bool

has_nil reports whether a type includes the nil value.

Source

pub fn comparable(&self, objs: &TCObjects) -> bool

comparable reports whether values of type T are comparable.

Trait Implementations§

Source§

impl Debug for Type

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Type

§

impl !RefUnwindSafe for Type

§

impl !Send for Type

§

impl !Sync for Type

§

impl Unpin for Type

§

impl !UnwindSafe for Type

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.