Class: Codify::Rust::Types::Named

Inherits:
Struct
  • Object
show all
Includes:
Codify::Rust::Type
Defined in:
lib/codify/rust/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Codify::Rust::Type

#defaultible?, #definition?, #each_subtype, #to_rust

Instance Attribute Details

#tObject

Returns the value of attribute t

Returns:

  • (Object)

    the current value of t



6
7
8
# File 'lib/codify/rust/types.rb', line 6

def t
  @t
end

Class Method Details

.to_sObject



9
# File 'lib/codify/rust/types.rb', line 9

def self.to_s() 'Codify::Rust::Types::Named' end

Instance Method Details

#primitive?Boolean

Returns:

  • (Boolean)


11
# File 'lib/codify/rust/types.rb', line 11

def primitive?() false end

#to_sObject



13
# File 'lib/codify/rust/types.rb', line 13

def to_s() t.to_s end

#typesObject

NB



12
# File 'lib/codify/rust/types.rb', line 12

def types() [] end