assert false; return null; // Unreachable without extending the (internal) bindings interface
}
+ /**
+ * When we're in this state, this COption_TypeZ contains a crate::lightning::ln::wire::Type
+ */
public final static class Some extends Option_TypeZ {
public final Type some;
private Some(long ptr, bindings.LDKCOption_TypeZ.Some obj) {
this.some = ret_hu_conv;
}
}
+ /**
+ * When we're in this state, this COption_TypeZ contains nothing
+ */
public final static class None extends Option_TypeZ {
private None(long ptr, bindings.LDKCOption_TypeZ.None obj) {
super(null, ptr);
return ret_hu_conv;
}
+ long clone_ptr() {
+ long ret = bindings.COption_TypeZ_clone_ptr(this.ptr);
+ return ret;
+ }
+
/**
* Creates a new COption_TypeZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.