pub enum Intent {
Natal,
Fortune,
Event,
Election,
Synastry,
Mundane,
Locative,
Onomancy,
}Expand description
八类问局。
与 crate::QueryKind 的关系:QueryKind 携带该问局要哪些输入原子,Intent 只是它的标签,
用来回答「哪片叶答这一类」。做成枚举而不是字符串,是为了让「一片叶声明它答什么」这件事
由类型系统盯着——写错一个字符串,那片叶会静默地什么都不答。
Variants§
Natal
命:本命盘(出生切片)。
Fortune
运:运势 / 流年 / 大运。
Event
事:占事。
Election
择:择吉。
Synastry
合:合盘。
Mundane
群/国:国运。
Locative
寻:寻方位。
Onomancy
号:字 / 词(与时刻无关)。
Implementations§
Trait Implementations§
impl Copy for Intent
impl Eq for Intent
Source§impl Ord for Intent
impl Ord for Intent
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 Intent
impl PartialOrd for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
Blanket Implementations§
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