pub struct NarseseFormatAtom<Content> {
pub prefix_word: Content,
pub prefix_variable_independent: Content,
pub prefix_variable_dependent: Content,
pub prefix_variable_query: Content,
pub prefix_interval: Content,
pub prefix_operator: Content,
pub prefix_placeholder: Content,
}Expand description
Narsese格式/原子词项
- 格式预期:
{前缀}+词项字符串名- 📌将「占位符」也包含在内——相当于「只有前缀,没有内容」的词项
- 核心:存储各个原子词项的前缀
Fields§
§prefix_word: Content前缀/词语 | ``
prefix_variable_independent: Content前缀/独立变量 | $
prefix_variable_dependent: Content前缀/非独变量 | #
prefix_variable_query: Content前缀/查询变量 | ?
prefix_interval: Content前缀/间隔 | +
prefix_operator: Content前缀/操作符 | ^
prefix_placeholder: Content前缀/占位符 | _
Trait Implementations§
Source§impl<Content: Clone> Clone for NarseseFormatAtom<Content>
impl<Content: Clone> Clone for NarseseFormatAtom<Content>
Source§fn clone(&self) -> NarseseFormatAtom<Content>
fn clone(&self) -> NarseseFormatAtom<Content>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Content> Freeze for NarseseFormatAtom<Content>where
Content: Freeze,
impl<Content> RefUnwindSafe for NarseseFormatAtom<Content>where
Content: RefUnwindSafe,
impl<Content> Send for NarseseFormatAtom<Content>where
Content: Send,
impl<Content> Sync for NarseseFormatAtom<Content>where
Content: Sync,
impl<Content> Unpin for NarseseFormatAtom<Content>where
Content: Unpin,
impl<Content> UnsafeUnpin for NarseseFormatAtom<Content>where
Content: UnsafeUnpin,
impl<Content> UnwindSafe for NarseseFormatAtom<Content>where
Content: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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