pub struct FrameSpec {
pub id: Symbol,
pub kind: FrameKind,
pub prefix: &'static str,
pub template: &'static str,
pub holes: Vec<FrameHoleSpec>,
pub grammar_priority: u8,
}Expand description
Registered frame specification.
Fields§
§id: SymbolFrame id carried in bridge/Frame payloads.
kind: FrameKindIllocutionary frame kind.
prefix: &'static strDeterministic sentence prefix.
template: &'static strDeterministic template body using {hole} placeholders.
holes: Vec<FrameHoleSpec>Typed holes accepted by this frame.
grammar_priority: u8Priority for grammar menus.
Implementations§
Trait Implementations§
impl Eq for FrameSpec
impl StructuralPartialEq for FrameSpec
Auto Trait Implementations§
impl Freeze for FrameSpec
impl RefUnwindSafe for FrameSpec
impl Send for FrameSpec
impl Sync for FrameSpec
impl Unpin for FrameSpec
impl UnsafeUnpin for FrameSpec
impl UnwindSafe for FrameSpec
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