如何调用带有Void类型值的scala函数(How to call a scala function taking a value of Void type)
如何调用这样的scala函数?
def f(v: Void): Unit = {println(1)}
我还没有在Scala中找到Void类型的值。
How to call such a scala function?
def f(v: Void): Unit = {println(1)}
I haven't found a value of Void type in Scala yet.
原文:https://stackoverflow.com/questions/39735812
更新时间:2023-06-02 08:06
最满意答案
我找到了解决方案,所有问题都来自clipSubview,有必要从superView的red View中取消选中clipSubview。 事实证明,红色视图只是切断了自己的超级视图。
I found the solution, all problems were from clipSubview, it was necessary to uncheck clipSubview from superView of red View. It turns out, that red view simply cut off own superView.
相关问答
更多-
注意:截至本文,快速层仅在几天前推出。 但据我所知...... 新的快速图层是旧图层,但关闭了事件。 KineticJS文档说: 如果您不需要节点嵌套,鼠标和触摸交互或事件pub / sub,则应使用FastLayer而不是Layer来创建图层。 它渲染速度比普通图层快2倍。 快速图层用于不需要用户交互的图层: 静态背景图层,无需用户交互。 通过JS代码完全操作和绘制的静态层,无需用户交互。 绘制快速图层更快,因为没有与事件相关的开销。 普通图层还有一个支持屏幕外画布,支持命中测试和拖动。 我怀疑快速层没有 ...
-
我删除了transrormLayer 。 并改变了操作顺序。 CATransform3D t = CATransform3DIdentity; t = CATransform3DConcat(bottomSide.transform, t); // cube side position t = CATransform3DConcat(rootLayer.sublayerTransform, t); // cube rotation and perspective testLayer.transform = ...
-
Sitecore角色层次结构(Sitecore role hierarchy)[2024-01-16]
实际上,5.3支持角色中的角色:)。 但不是在UI中。 查看/sitecore/admin/dbbrowser.aspx并切换到安全数据库。 角色项具有角色角色字段。 您可以通过添加ID,管道(|)分隔来添加角色。 Actually, 5.3 has support for roles in roles :). But not in the UI. Have a look at /sitecore/admin/dbbrowser.aspx and switch to the Security databas ... -
3ds max嵌套图层次结构(3ds max nested layers hierarchy)[2022-11-24]
文件说明了这一点: 按索引迭代图层:IFPLayerManager类也是一个管理3ds Max中场景图层的接口类。 然而,该类是函数发布的接口,因此与先前讨论的层管理器完全不同。 此类是MAXScript LayerManager类的C ++接口。 这个类有一个有用的方法来返回一个整数索引的图层。 因此,您可以在不知道图层名称的情况下迭代场景图层。 要获取指向此对象的指针,请调用GetCOREInterface()函数。 IFPLayerManager* layer_manager = static_cas ... -
如何实现调用层次结构(How call hierarchy is implemented)[2022-01-24]
您可以直接在右侧视图中使用Plug-In Spy ( Alt + Shift + F1 )开始查看, ViewPart包含: 你可以在这里看到org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart的来源 You can start looking, with a Plug-In Spy (Alt+Shift+F1) directly in the right View, the ViewPart which is involved: Y ... -
坏层次结构(Bad layers hierarchy)[2022-12-29]
我找到了解决方案,所有问题都来自clipSubview,有必要从superView的red View中取消选中clipSubview。 事实证明,红色视图只是切断了自己的超级视图。 I found the solution, all problems were from clipSubview, it was necessary to uncheck clipSubview from superView of red View. It turns out, that red view simply cut ... -
类层次结构(Class Hierarchy)[2021-09-08]
我不明白为什么New,Cancel和Modify消息应该是它们适用的产品的子类。 这不满足应该定义继承的“is-a”关系。 如果D类继承自B类,那么语句“Every D is a B ”应该是有意义的并且始终是真的。 “ Prod1是BaseProd ”(即“每个特定产品都是产品”) - 这是真实的,也是有道理的。 但就事件而言, Prod1Cancel 不是 Prod1 。 说“每个产品1取消事件都是产品1”是没有意义的。 相反, Prod1Cancel是与 Prod1 相关的事件,因此更有意义的是Pro ... -
MEL:遍历层次结构(MEL: Traverse through hierarchy)[2022-01-14]
如果为$stat_element分配层次结构中顶部关节的名称并运行以下代码,则会向该关节的所有子元素添加前缀"myPrefix_" 。 string $stat_element = "joint1"; select -r $stat_element; string $nodes[] = `ls -sl -dag`; for($node in $nodes){ rename -ignoreShape $node ("myPrefix_" + $node); } 希望这可以帮助 If you assi ... -
WCMS的层次结构是什么?(What is the hierarchy of WCMS?)[2022-08-12]
我认为这个问题不是很清楚。 WCMS中没有层次结构概念。 对我来说,WCMS是一个模块,模块由扩展组成。 所以我想问题是扩展关系/ 层次结构是什么? 它在WCMS模块文档中有所描述 此图像来自上述链接中引用的SAP文档。 I think the question is not very clear. There is no hierarchy concept in WCMS. For me WCMS is a module and the module is composed of extensions. ... -
您可以使用无序列表来创建层次结构(
- 和
- 标记)。 这可以为您提供一个语义上有效的树结构,最重要的是,您可以通过CSS或Javascript以有趣的方式表达它。 查看列表教程,了解一系列精彩的工作示例。 You can use unordered lists to create a hierarchy (the
- and
- tags). This can give you a tree structure which is semantically valid, and on t ...
- 标记)。 这可以为您提供一个语义上有效的树结构,最重要的是,您可以通过CSS或Javascript以有趣的方式表达它。 查看列表教程,了解一系列精彩的工作示例。 You can use unordered lists to create a hierarchy (the