TraitClaim
the trait bounds of the context of a TraitClaim represents the traits that
we can assume when proving the trait
Constructors
Instance methods
context
Sourcelocation
def initialize(@source : Ast::TopLevelItem, @type_params : Slice(TypeParameter), type : Type, trait : Trait) @trait = Trait.new(trait.base, Slice[type] + trait.type_args) end
source
Sourcestatus
Sourcestatus=(status : ImplStatus)
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
trait
Sourcetype_params
Source