Struct gluon_base::types::ArcType [] [src]

pub struct ArcType<Id = Symbol> { /* fields omitted */ }

A shared type which is atomically reference counted

Methods

impl<Id> ArcType<Id>
[src]

[src]

[src]

Returns an iterator over all type fields in a record. { Test, Test2, x, y } => [Test, Test2]

[src]

Returns an iterator over all fields in a record. { Test, Test2, x, y } => [x, y]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl ArcType
[src]

[src]

[src]

Applies a list of arguments to a parameterised type, returning Some if the substitution was successful.

Example:

self = forall e t . | Err e | Ok t
args = [Error, Option a]
result = | Err Error | Ok (Option a)

impl<Id> ArcType<Id>
[src]

[src]

Returns the lowest level which this type contains. The level informs from where type variables where created.

Methods from Deref<Target = Type<Id, ArcType<Id>>>

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Returns the name of self Example: Option a => Option Int => Int

Trait Implementations

impl<Id: Eq> Eq for ArcType<Id>
[src]

impl<Id: PartialEq> PartialEq for ArcType<Id>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<Id: Hash> Hash for ArcType<Id>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<Id> Clone for ArcType<Id>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Id: Debug> Debug for ArcType<Id>
[src]

[src]

Formats the value using the given formatter.

impl<Id: AsRef<str>> Display for ArcType<Id>
[src]

[src]

Formats the value using the given formatter. Read more

impl<Id> Deref for ArcType<Id>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<Id> HasSpan for ArcType<Id>
[src]

[src]

impl<Id> Commented for ArcType<Id>
[src]

[src]

impl<Id> From<Type<Id, ArcType<Id>>> for ArcType<Id>
[src]

[src]

Performs the conversion.

impl<'a, I> ToDoc<'a, Arena<'a>, ()> for ArcType<I> where
    I: AsRef<str>, 
[src]

[src]

impl<'a, 'e, I> ToDoc<'a, Arena<'a>, &'e Source<'a>> for ArcType<I> where
    I: AsRef<str>, 
[src]

[src]