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 Unpin for Frame
impl UnsafeUnpin for Frame
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