package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Dec 24, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
TypeSeparator 是 Type 的分割符号,所以定义 Type 时,不可以包含这个符号
Type 是ddbot标记的订阅类型
FromString 从string中解析Type
Add 把传入的type加入到t中
注意这个操作并不会改变t,而是返回操作后的type
如果要改变t,可以这样: t = t.Add(...)
ContainAll 如果t包含o的所有type,返回true
ContainAny 如果t包含o内任意一个type,返回true
IsTrivial 检查t是否是单个type,即不是由多个type加起来的
Remove 从t内删除传入的type
注意这个操作并不会改变t,而是返回操作后的type
如果要改变t,可以这样: t = t.Remove(...)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.