struct Bindgen::Crystal::Pass
- Bindgen::Crystal::Pass
- Struct
- Value
- Object
Overview
Methods for passing data from Crystal and Crystal bindings to C++.
This is a helper struct: Cheap to create and to pass around.
Included Modules
Defined in:
bindgen/crystal/pass.crConstructors
Class Method Summary
Instance Method Summary
-
#arguments_to_binding(list : Enumerable(Parser::Argument))
Turns the list of arguments into a list of
Call::Argument
s. -
#arguments_to_wrapper(list : Enumerable(Parser::Argument))
Turns the list of arguments into a list of
Call::Argument
s. - #from(type : Parser::Type, is_constructor = false, &) : Call::Result
-
#from_binding(type : Parser::Type, qualified = false, is_constructor = false) : Call::Result
Computes a result for passing type from C++ to Crystal.
-
#from_wrapper(type : Parser::Type, is_constructor = false) : Call::Result
Computes a result for passing type from the wrapper to the user.
- #logger
- #to(type : Parser::Type, &) : Call::Result
-
#to_binding(type : Parser::Type, to_unsafe = false, qualified = false) : Call::Result
Computes a result for passing type from Crystal to C++.
-
#to_wrapper(type : Parser::Type) : Call::Result
Computes a result for passing type to the wrapper.
Instance methods inherited from module Bindgen::TypeHelper
passthrough(type : Parser::Type)
passthrough,
reconfigure_pass_type(pass_by, is_ref, ptr)
reconfigure_pass_type,
type_copied?(type) : Bool
type_copied?,
type_pointer_depth(type : Parser::Type) : Int32
type_pointer_depth,
variadic_argument : Call::VariadicArgument
variadic_argument
Constructor Detail
Class Method Detail
Instance Method Detail
Turns the list of arguments into a list of Call::Argument
s.
Turns the list of arguments into a list of Call::Argument
s.
Computes a result for passing type from C++ to Crystal.
If qualified is true
, the type is assumed to be used outside the
lib Binding
, and will be qualified if required.
Computes a result for passing type from the wrapper to the user.
Computes a result for passing type from Crystal to C++. If
to_unsafe is true
, and the type is not built-in, the result will
be wrapped in a call to to_unsafe
- Except if a user-defined
conversion is set.
Computes a result for passing type to the wrapper.