class Carbon::Concrete::Item::Struct::Element
An element of a struct. Contains name and type information, and that's it.
@api private @note
**This class is frozen upon initialization.** This means that any attempt to modify it will result in an error. In most cases, the attributes on this class will also be frozen, as well.
Attributes
name[R]
The name of the element.
@return [::String]
type[R]
The type of the element.
@return [Type]
Public Class Methods
new(name, type)
click to toggle source