Skip to main content

T_INT

Struct T_INT 

Source
pub struct T_INT { /* private fields */ }
Available on crate feature types only.
Expand description

Predifined int type.

Methods from Deref<Target = Type>§

Source

pub fn is_array(&self) -> bool

Returns true if the type is an array type.

Source

pub fn as_array(&self) -> Option<ArrayType>

Returns ArrayType if the type is an array type.

§Panics

Panics if the type is a malformed array type. This is a bug and should be reported.

Source

pub fn is_lambda(&self) -> bool

Returns true if the type is a lambda type.

Source

pub fn as_lambda(&self) -> Option<LambdaType>

Returns LambdaType if the type is a lambda type.

§Panics

Panics if the type is a malformed lambda type. This is a bug and should be reported.

Source

pub fn is_option(&self) -> bool

Returns true if the type is an option type.

Source

pub fn as_option(&self) -> Option<OptionType>

Returns OptionType if the type is an option type.

§Panics

Panics if the type is a malformed option type. This is a bug and should be reported.

Source

pub fn is_pair(&self) -> bool

Returns true if the type is a pair type.

Source

pub fn as_pair(&self) -> Option<PairType>

Returns PairType if the type is a pair type.

§Panics

Panics if the type is a malformed pair type. This is a bug and should be reported.

Source

pub fn is_union(&self) -> bool

Returns true if the type is a union type.

Source

pub fn as_union(&self) -> Option<UnionType>

Returns UnionType if the type is a union type.

§Panics

Panics if the type is a malformed union type. This is a bug and should be reported.

Source

pub fn is_specific(&self) -> bool

Returns true if the type is a specific type.

Source

pub fn is_filled(&self) -> bool

Returns true if the type is a filled type.

Source

pub fn iter(&self) -> Iter<'_, u8> ⓘ

Returns an iterator over the type code.

Source

pub fn as_slice(&self) -> &[u8] ⓘ

Returns the type code as a slice.

Source

pub fn is_nil(&self) -> bool

Source

pub fn is_void(&self) -> bool

Source

pub fn is_any(&self) -> bool

Source

pub fn is_typedef(&self) -> bool

Source

pub fn is_boolean(&self) -> bool

Source

pub fn is_character(&self) -> bool

Source

pub fn is_integer(&self) -> bool

Source

pub fn is_float(&self) -> bool

Source

pub fn is_string(&self) -> bool

Source

pub fn is_symbol(&self) -> bool

Source

pub fn is_binary(&self) -> bool

Source

pub fn is_vector(&self) -> bool

Source

pub fn is_list(&self) -> bool

Trait Implementations§

Source§

impl Deref for T_INT

Source§

type Target = Type

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Type

Dereferences the value.
Source§

impl LazyStatic for T_INT

Auto Trait Implementations§

§

impl Freeze for T_INT

§

impl RefUnwindSafe for T_INT

§

impl Send for T_INT

§

impl Sync for T_INT

§

impl Unpin for T_INT

§

impl UnsafeUnpin for T_INT

§

impl UnwindSafe for T_INT

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.