Skip to main content

NarseseFormatAtom

Struct NarseseFormatAtom 

Source
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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<Content: Debug> Debug for NarseseFormatAtom<Content>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> JoinTo for T

Source§

fn join_to<S>(self, out: &mut String, sep: impl AsRef<str>)
where Self: Sized + Iterator<Item = S>, S: AsRef<str>,

将字串集中拼接到一个「目标字串」中,中途不创建任何辅助字符串 Read more
Source§

fn join_to_new<S>(self, sep: impl AsRef<str>) -> String
where Self: Sized + Iterator<Item = S>, S: AsRef<str>,

将字串集中拼接到一个新字串中 Read more
Source§

fn join_to_multi<S>(self, out: &mut String, sep: &[impl AsRef<str>])
where Self: Sized + Iterator<Item = S>, S: AsRef<str>,

将字串集中拼接到一个「目标字串」中,使用多个分隔符,中途不创建任何辅助字符串 Read more
Source§

fn join_to_multi_new<S>(self, sep: &[impl AsRef<str>]) -> String
where Self: Sized + Iterator<Item = S>, S: AsRef<str>,

将字串集中拼接到一个新字串中,使用多个分隔符 Read more
Source§

impl<T> ToDebug for T
where T: Debug,

Source§

fn to_debug(&self) -> String

将对象转换为「用Debug格式化的字符串」

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Void for T

Source§

fn void(self)