pub enum TLinkType {
SELF,
Component,
Compound,
ComponentStatement,
CompoundStatement,
ComponentCondition,
CompoundCondition,
Transform,
}Expand description
基于枚举的「链接类型」
- 📌【2024-06-04 19:35:12】拨乱反正:此处的「类型名」均为「从自身向目标」视角下「目标相对自身」的类型
- 📄目标是自身的元素⇒COMPONENT「元素」链接
Variants§
SELF
From C, targeted to “SELF” C; TaskLink only
- 🚩【2024-06-22 00:26:43】避嫌Rust的
Self关键字
Component
From (&&, A, C), targeted to “COMPONENT” C
Compound
From C, targeted to “COMPOUND” (&&, A, C)
ComponentStatement
From <C –> A>, targeted to “COMPONENT_STATEMENT” C
CompoundStatement
From C, targeted to “COMPOUND_STATEMENT” <C –> A>
ComponentCondition
From <(&&, C, B) ==> A>, targeted to “COMPONENT_CONDITION” C
CompoundCondition
From C, targeted to “COMPOUND_CONDITION” <(&&, C, B) ==> A>
Transform
From C, targeted to “TRANSFORM” <(*, C, B) –> A>; TaskLink only
Implementations§
Source§impl TLinkType
impl TLinkType
Sourcepub fn is_to_component(&self) -> bool
pub fn is_to_component(&self) -> bool
🆕判断一个「T链接类型」是否为「从复合词项链接到元素」
Sourcepub fn is_to_compound(&self) -> bool
pub fn is_to_compound(&self) -> bool
🆕判断一个「T链接类型」是否为「从元素链接到复合词项」
Sourcepub fn try_point_to_component(self) -> Self
pub fn try_point_to_component(self) -> Self
🆕从「元素→整体」变成「整体→元素」
- 🚩「自元素到整体」⇒「自整体到元素」
- 📌【2024-06-04 19:51:48】目前只在「元素→整体」⇒「整体→元素」的过程中调用
- ✅【2024-06-22 00:38:55】此处使用「默认返回自身」兼容
Trait Implementations§
impl Copy for TLinkType
Source§impl<'de> Deserialize<'de> for TLinkType
impl<'de> Deserialize<'de> for TLinkType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TLinkType
Source§impl Ord for TLinkType
impl Ord for TLinkType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TLinkType
impl PartialOrd for TLinkType
impl StructuralPartialEq for TLinkType
Auto Trait Implementations§
impl Freeze for TLinkType
impl RefUnwindSafe for TLinkType
impl Send for TLinkType
impl Sync for TLinkType
impl Unpin for TLinkType
impl UnsafeUnpin for TLinkType
impl UnwindSafe for TLinkType
Blanket Implementations§
Source§impl<T> BoostWithOption for T
impl<T> BoostWithOption for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> JoinTo for T
impl<T> JoinTo for T
Source§fn join_to<S>(self, out: &mut String, sep: impl AsRef<str>)
fn join_to<S>(self, out: &mut String, sep: impl AsRef<str>)
将字串集中拼接到一个「目标字串」中,中途不创建任何辅助字符串 Read more
Source§impl<T> JoinTo for T
impl<T> JoinTo for T
Source§fn join_to<S>(self, out: &mut String, sep: impl AsRef<str>)
fn join_to<S>(self, out: &mut String, sep: impl AsRef<str>)
将字串集中拼接到一个「目标字串」中,中途不创建任何辅助字符串 Read more