class

Bindgen::Call::Result

Inherits Bindgen::Call::Expression < Reference < Object

Call result type configuration.

Constructors

new(type, type_name, reference, pointer, conversion : Bindgen::Template::Base = Template::None.new, nilable = false)
Source

Instance methods

apply_conversion(code : String) : String

Applies the result's conversion template to a piece of code.

Source
conversion

Conversion template to get the data out of the method, ready to be returned back.

Source
copy_with(type : Parser::Type = @type, type_name : String = @type_name, reference : Bool = @reference, pointer : Int32 = @pointer, conversion : Template::Base = @conversion, nilable : Bool = @nilable) : Result

Returns a copy of this result, with the given fields replaced.

Source
to_argument(name : String, default = nil) : Argument

Converts the result into an argument of name.

Source