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

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

A shared type which is atomically reference counted

Methods

impl<Id> ArcType<Id>
[src]

Important traits for TypeFieldIterator<'a, T>

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

Important traits for RowIterator<'a, T>

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

Important traits for ForallScopeIter<'a, Id>

impl ArcType
[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]

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>>>

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

Trait Implementations

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

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

impl<T> Shared for ArcType<T>
[src]

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

impl<'a, I, A> ToDoc<'a, Arena<Doc<'a, RefDoc<'a, A>, A>>, A, &'a (dyn Source + 'a)> for ArcType<I> where
    I: AsRef<str>,
    A: Clone
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

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

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

Returns the "default value" for a type. Read more

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

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

This method tests for !=.

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

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

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

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

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

The resulting type after dereferencing.

Dereferences the value.

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

impl<Id> SerializeState<SeSeed> for ArcType<Id> where
    Id: SerializeState<SeSeed>, 
[src]

Placeholder

impl<'de, Id> DeserializeState<'de, Seed<Id, ArcType<Id>>> for ArcType<Id> where
    Id: DeserializeState<'de, Seed<Id, ArcType<Id>>> + Clone + Any
[src]

Deserializes Self using seed and the deserializer

Auto Trait Implementations

impl<Id> Send for ArcType<Id> where
    Id: Send + Sync

impl<Id> Sync for ArcType<Id> where
    Id: Send + Sync

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Any for T where
    T: Any
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]