pub struct NoExpandRegistry { /* private fields */ }Expand description
展開禁止情報の管理
トークンごとにマクロ展開禁止リストを管理する。 自己参照マクロの無限再帰を防止するために使用。
Implementations§
Source§impl NoExpandRegistry
impl NoExpandRegistry
Sourcepub fn add(&mut self, token_id: TokenId, macro_id: InternedStr)
pub fn add(&mut self, token_id: TokenId, macro_id: InternedStr)
トークンに展開禁止マクロを追加
Sourcepub fn extend(
&mut self,
token_id: TokenId,
macros: impl IntoIterator<Item = InternedStr>,
)
pub fn extend( &mut self, token_id: TokenId, macros: impl IntoIterator<Item = InternedStr>, )
トークンに複数の展開禁止マクロを追加
Sourcepub fn is_blocked(&self, token_id: TokenId, macro_id: InternedStr) -> bool
pub fn is_blocked(&self, token_id: TokenId, macro_id: InternedStr) -> bool
指定トークンで指定マクロの展開が禁止されているか
Trait Implementations§
Source§impl Debug for NoExpandRegistry
impl Debug for NoExpandRegistry
Source§impl Default for NoExpandRegistry
impl Default for NoExpandRegistry
Source§fn default() -> NoExpandRegistry
fn default() -> NoExpandRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoExpandRegistry
impl RefUnwindSafe for NoExpandRegistry
impl Send for NoExpandRegistry
impl Sync for NoExpandRegistry
impl Unpin for NoExpandRegistry
impl UnsafeUnpin for NoExpandRegistry
impl UnwindSafe for NoExpandRegistry
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