You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer){
30
35
self.pointer = pointer
31
36
}
32
37
38
+
/// This constructor can be used to instantiate a fake object.
39
+
/// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject].
40
+
///
41
+
/// - Warning:
42
+
/// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash.
43
+
public init(noPointer: NoPointer){
44
+
self.pointer =nil
45
+
}
46
+
33
47
public func uniffiClonePointer()->UnsafeMutableRawPointer{
@@ -59,7 +73,7 @@ public class {{ impl_class_name }}:
59
73
{% for meth in obj.methods()-%}
60
74
{%- if meth.is_async()%}
61
75
{%- call swift::docstring(meth,4)%}
62
-
publicfunc{{ meth.name()|fn_name }}({%- call swift::arg_list_decl(meth)-%})async{% call swift::throws(meth)%}{% match meth.return_type()%}{% when Some with (return_type)%}->{{ return_type|type_name }}{% when None %}{% endmatch %}{
76
+
openfunc{{ meth.name()|fn_name }}({%- call swift::arg_list_decl(meth)-%})async{% call swift::throws(meth)%}{% match meth.return_type()%}{% when Some with (return_type)%}->{{ return_type|type_name }}{% when None %}{% endmatch %}{
0 commit comments