Class: Codify::Rust::Types::Result
- Inherits:
-
Struct
- Object
- Struct
- Codify::Rust::Types::Result
- Includes:
- Codify::Rust::Type
- Defined in:
- lib/codify/rust/types.rb
Instance Attribute Summary collapse
-
#e ⇒ Object
Returns the value of attribute e.
-
#t ⇒ Object
Returns the value of attribute t.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Codify::Rust::Type
#defaultible?, #definition?, #each_subtype, #primitive?, #to_rust
Instance Attribute Details
#e ⇒ Object
Returns the value of attribute e
73 74 75 |
# File 'lib/codify/rust/types.rb', line 73 def e @e end |
#t ⇒ Object
Returns the value of attribute t
73 74 75 |
# File 'lib/codify/rust/types.rb', line 73 def t @t end |
Class Method Details
.to_s ⇒ Object
76 |
# File 'lib/codify/rust/types.rb', line 76 def self.to_s() 'Codify::Rust::Types::Result' end |
Instance Method Details
#to_s ⇒ Object
79 |
# File 'lib/codify/rust/types.rb', line 79 def to_s() "Result<#{t}, #{e}>" end |
#types ⇒ Object
78 |
# File 'lib/codify/rust/types.rb', line 78 def types() [t, e] end |