pub struct Frame { /* private fields */ }Implementations§
Source§impl Frame
impl Frame
pub fn compiled(&self) -> &Compiled
pub fn phrasing(&self) -> bool
pub fn context(&self, slot: u16) -> Option<&'static str>
pub fn accepts(&self, parent: &str) -> bool
pub fn new(template: &'static Template) -> Result<Rc<Self>, Error>
pub fn slot(&self, name: &str) -> Result<(u16, Kind), Error>
pub fn value(&self, slot: u16) -> Result<Value, Error>
pub fn text(&self, slot: u16, text: String) -> Result<(), Error>
pub fn flag(&self, slot: u16, value: bool) -> Result<(), Error>
pub fn bind(&self, queue: &Rc<Queue>, id: NodeId)
pub fn take_changes(&self) -> BTreeMap<u16, Value>
pub fn tree(&self) -> Vec<Tree>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Frame
impl !RefUnwindSafe for Frame
impl !Send for Frame
impl !Sync for Frame
impl !UnwindSafe for Frame
impl Forget for Frame
impl Move for Frame
impl Unpin for Frame
impl UnsafeUnpin for Framewhere
&'static Template: UnsafeUnpin,
*const ArcInner<Compiled> is !null: UnsafeUnpin,
PhantomData<ArcInner<Compiled>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<u16, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u16, Value)>>: UnsafeUnpin,
*const RcInner<Queue> is !null: UnsafeUnpin,
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