Class: Codify::Rust::Types::Result

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

#eObject

Returns the value of attribute e

Returns:

  • (Object)

    the current value of e



73
74
75
# File 'lib/codify/rust/types.rb', line 73

def e
  @e
end

#tObject

Returns the value of attribute t

Returns:

  • (Object)

    the current value of t



73
74
75
# File 'lib/codify/rust/types.rb', line 73

def t
  @t
end

Class Method Details

.to_sObject



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

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

Instance Method Details

#to_sObject



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

def to_s() "Result<#{t}, #{e}>" end

#typesObject



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

def types() [t, e] end