pub enum Flank {
Whole,
Pre,
Post,
}Expand description
一个 slot 相对字面量头的位置。Pre+字面量+Post 程序编成 (?:..)?lit(?:..)?,使字面量头
两侧的可选修饰可表达。
注:#[derive(Slots)](区块序列模型,字面量是一等区块、按声明序穿插)只产出 Whole 槽;
Pre/Post 仅供手搓 Matcher::slots(vec![..]) 时表达「单字面量头两侧的修饰」。日常派生用不到。
Variants§
Trait Implementations§
impl Copy for Flank
impl Eq for Flank
impl StructuralPartialEq for Flank
Auto Trait Implementations§
impl Freeze for Flank
impl RefUnwindSafe for Flank
impl Send for Flank
impl Sync for Flank
impl Unpin for Flank
impl UnsafeUnpin for Flank
impl UnwindSafe for Flank
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