[][src]Struct gluon_base::types::Field

pub struct Field<Id, T = ArcType<Id>> {
    pub name: Id,
    pub typ: T,
}

Fields

name: Idtyp: T

Implementations

impl<Id, T> Field<Id, T>[src]

pub fn new(name: Id, typ: T) -> Field<Id, T>[src]

pub fn ctor_with<J>(
    context: &mut impl TypeContext<Id, T> + ?Sized,
    ctor_name: Id,
    elems: J
) -> Self where
    J: IntoIterator<Item = T>,
    J::IntoIter: DoubleEndedIterator,
    T: TypePtr<Id = Id>, 
[src]

pub fn ctor<J>(ctor_name: Id, elems: J) -> Self where
    J: IntoIterator<Item = T>,
    J::IntoIter: DoubleEndedIterator,
    T: TypeExt<Id = Id> + From<Type<Id, T>>,
    T::Types: Default + Extend<T>, 
[src]

Trait Implementations

impl<'ast, Id> AstAlloc<'ast, Id> for Field<Id, AstType<'ast, Id>>[src]

impl<'ast, Id> AstAlloc<'ast, Id> for Field<Id, Alias<Id, AstType<'ast, Id>>>[src]

impl<'ast, Id, T> AstClone<'ast, Id> for Field<Id, T> where
    Id: AstClone<'ast, Id>,
    T: AstClone<'ast, Id>,
    Id: Clone
[src]

impl<Id: Clone, T: Clone> Clone for Field<Id, T>[src]

impl<Id: Debug, T: Debug> Debug for Field<Id, T>[src]

impl<Id: Eq, T: Eq> Eq for Field<Id, T>[src]

impl<Id: Hash, T: Hash> Hash for Field<Id, T>[src]

impl<Id: PartialEq, T: PartialEq> PartialEq<Field<Id, T>> for Field<Id, T>[src]

impl<Id, T> StructuralEq for Field<Id, T>[src]

impl<Id, T> StructuralPartialEq for Field<Id, T>[src]

Auto Trait Implementations

impl<Id, T> RefUnwindSafe for Field<Id, T> where
    Id: RefUnwindSafe,
    T: RefUnwindSafe

impl<Id, T> Send for Field<Id, T> where
    Id: Send,
    T: Send

impl<Id, T> Sync for Field<Id, T> where
    Id: Sync,
    T: Sync

impl<Id, T> Unpin for Field<Id, T> where
    Id: Unpin,
    T: Unpin

impl<Id, T> UnwindSafe for Field<Id, T> where
    Id: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.