Class: Codify::Rust::Types::Ref

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, #primitive?, #to_rust

Instance Attribute Details

#tObject

Returns the value of attribute t

Returns:

  • (Object)

    the current value of t



31
32
33
# File 'lib/codify/rust/types.rb', line 31

def t
  @t
end

Class Method Details

.to_sObject



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

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

Instance Method Details

#to_sObject



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

def to_s() "&#{t}" end

#typesObject



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

def types() [t] end