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
impl Type
pub fn try_as_basic(&self) -> Option<&BasicDetail>
pub fn try_as_array(&self) -> Option<&ArrayDetail>
pub fn try_as_array_mut(&mut self) -> Option<&mut ArrayDetail>
pub fn try_as_slice(&self) -> Option<&SliceDetail>
pub fn try_as_struct(&self) -> Option<&StructDetail>
pub fn try_as_pointer(&self) -> Option<&PointerDetail>
pub fn try_as_tuple(&self) -> Option<&TupleDetail>
pub fn try_as_tuple_mut(&mut self) -> Option<&mut TupleDetail>
pub fn try_as_signature(&self) -> Option<&SignatureDetail>
pub fn try_as_signature_mut(&mut self) -> Option<&mut SignatureDetail>
pub fn try_as_interface(&self) -> Option<&InterfaceDetail>
pub fn try_as_interface_mut(&mut self) -> Option<&mut InterfaceDetail>
pub fn try_as_map(&self) -> Option<&MapDetail>
pub fn try_as_chan(&self) -> Option<&ChanDetail>
pub fn try_as_chan_mut(&mut self) -> Option<&mut ChanDetail>
pub fn try_as_named(&self) -> Option<&NamedDetail>
pub fn try_as_named_mut(&mut self) -> Option<&mut NamedDetail>
pub fn underlying(&self) -> Option<TypeKey>
pub fn underlying_val<'a>(&'a self, objs: &'a TCObjects) -> &'a Type
pub fn is_named(&self) -> bool
pub fn is_invalid(&self, objs: &TCObjects) -> bool
pub fn is_boolean(&self, objs: &TCObjects) -> bool
pub fn is_integer(&self, objs: &TCObjects) -> bool
pub fn is_unsigned(&self, objs: &TCObjects) -> bool
pub fn is_float(&self, objs: &TCObjects) -> bool
pub fn is_complex(&self, objs: &TCObjects) -> bool
pub fn is_numeric(&self, objs: &TCObjects) -> bool
pub fn is_string(&self, objs: &TCObjects) -> bool
pub fn is_typed(&self, objs: &TCObjects) -> bool
pub fn is_untyped(&self, objs: &TCObjects) -> bool
pub fn is_ordered(&self, objs: &TCObjects) -> bool
pub fn is_const_type(&self, objs: &TCObjects) -> bool
pub fn is_interface(&self, objs: &TCObjects) -> bool
Sourcepub fn has_nil(&self, objs: &TCObjects) -> bool
pub fn has_nil(&self, objs: &TCObjects) -> bool
has_nil reports whether a type includes the nil value.
Sourcepub fn comparable(&self, objs: &TCObjects) -> bool
pub fn comparable(&self, objs: &TCObjects) -> bool
comparable reports whether values of type T are comparable.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more