Skip to main content

Frame

Struct Frame 

Source
pub struct Frame { /* private fields */ }

Implementations§

Source§

impl Frame

Source

pub fn compiled(&self) -> &Compiled

Source

pub fn phrasing(&self) -> bool

Source

pub fn context(&self, slot: u16) -> Option<&'static str>

Source

pub fn accepts(&self, parent: &str) -> bool

Source

pub fn new(template: &'static Template) -> Result<Rc<Self>, Error>

Source

pub fn slot(&self, name: &str) -> Result<(u16, Kind), Error>

Source

pub fn value(&self, slot: u16) -> Result<Value, Error>

Source

pub fn text(&self, slot: u16, text: String) -> Result<(), Error>

Source

pub fn flag(&self, slot: u16, value: bool) -> Result<(), Error>

Source

pub fn bind(&self, queue: &Rc<Queue>, id: NodeId)

Source

pub fn take_changes(&self) -> BTreeMap<u16, Value>

Source

pub fn tree(&self) -> Vec<Tree>

Trait Implementations§

Source§

impl Debug for Frame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.