pub struct Forest { /* private fields */ }Implementations§
Source§impl Forest
impl Forest
pub fn new() -> Self
pub fn root_names(&self) -> Iter<'_, Ident>
pub fn add_root(&mut self, root: Root) -> Result<(), Error>
pub fn add_branch(&mut self, branch: Branch) -> Result<(), Error>
pub fn add_enum(&mut self, en: Enum) -> Result<(), Error>
pub fn nodes(&self) -> Iter<'_, Node>
pub fn resolve<'a>( &'a self, prepared: &'a PreparedRoot, shaped: &'a Shaped, ) -> Record<'a>
pub fn prepare(&self, root: &Ident) -> Result<PreparedRoot, PrepareError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Forest
impl RefUnwindSafe for Forest
impl Send for Forest
impl Sync for Forest
impl Unpin for Forest
impl UnsafeUnpin for Forest
impl UnwindSafe for Forest
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