Class: Codify::Rust::Types::Vec
- Inherits:
-
Struct
- Object
- Struct
- Codify::Rust::Types::Vec
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
#defaultible?, #definition?, #each_subtype, #primitive?, #to_rust
Instance Attribute Details
#t ⇒ Object
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_s ⇒ Object
54
|
# File 'lib/codify/rust/types.rb', line 54
def self.to_s() 'Codify::Rust::Types::Vec' end
|
Instance Method Details
#to_s ⇒ Object
57
|
# File 'lib/codify/rust/types.rb', line 57
def to_s() "Vec<#{t || '_'}>" end
|
#types ⇒ Object
56
|
# File 'lib/codify/rust/types.rb', line 56
def types() [t] end
|