Class: Codify::Rust::Types::Vec

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



51
52
53
# File 'lib/codify/rust/types.rb', line 51

def t
  @t
end

Class Method Details

.to_sObject



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

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

Instance Method Details

#to_sObject



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

def to_s() "Vec<#{t || '_'}>" end

#typesObject



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

def types() [t] end