pub struct EntryMut<'t, 'a> { /* private fields */ }Implementations§
Source§impl<'t, 'a> EntryMut<'t, 'a>
impl<'t, 'a> EntryMut<'t, 'a>
pub fn new(table: &'t mut Table<'a>, id: Handle) -> Self
pub const fn id(&self) -> Handle
pub const fn inner(&'t self) -> &'t Table<'a>
pub fn kind(&self) -> Option<&NodeKind>
pub const fn root(&self) -> Handle
pub fn children(&self) -> Option<&HashMap<Sym, Handle>>
pub fn imports(&self) -> Option<&HashMap<Sym, Handle>>
pub fn bodies(&self) -> Option<&'a Expr>
pub fn span(&self) -> Option<&Span>
pub fn meta(&self) -> Option<&[Meta]>
pub fn source(&self) -> Option<&Source<'a>>
pub fn name(&self) -> Option<Sym>
pub fn ty(&self) -> Option<&TypeKind>
pub fn inner_mut(&mut self) -> &mut Table<'a>
pub fn as_ref(&self) -> Entry<'_, 'a>
Sourcepub fn evaluate<Out>(
&mut self,
ty: &impl TypeExpression<Out>,
) -> Result<Out, Error>
pub fn evaluate<Out>( &mut self, ty: &impl TypeExpression<Out>, ) -> Result<Out, Error>
Evaluates a TypeExpression in this entry’s context
pub fn categorize(&mut self) -> Result<(), Error>
Sourcepub fn with_id(&mut self, parent: Handle) -> EntryMut<'_, 'a>
pub fn with_id(&mut self, parent: Handle) -> EntryMut<'_, 'a>
Constructs a new Handle with the provided parent Handle
pub fn new_entry(&mut self, kind: NodeKind) -> EntryMut<'_, 'a>
pub fn add_child(&mut self, name: Sym, child: Handle) -> Option<Handle>
pub fn set_body(&mut self, body: &'a Expr) -> Option<&'a Expr>
pub fn set_ty(&mut self, kind: TypeKind) -> Option<TypeKind>
pub fn set_span(&mut self, span: Span) -> Option<Span>
pub fn set_meta(&mut self, meta: &'a [Meta]) -> Option<&'a [Meta]>
pub fn set_source(&mut self, source: Source<'a>) -> Option<Source<'a>>
pub fn set_impl_target(&mut self, target: Handle) -> Option<Handle>
pub fn mark_unchecked(&mut self)
pub fn mark_use_item(&mut self)
pub fn mark_impl_item(&mut self)
pub fn mark_lang_item(&mut self, lang_item: &'static str)
Trait Implementations§
Auto Trait Implementations§
impl<'t, 'a> Freeze for EntryMut<'t, 'a>
impl<'t, 'a> RefUnwindSafe for EntryMut<'t, 'a>
impl<'t, 'a> Send for EntryMut<'t, 'a>
impl<'t, 'a> Sync for EntryMut<'t, 'a>
impl<'t, 'a> Unpin for EntryMut<'t, 'a>
impl<'t, 'a> !UnwindSafe for EntryMut<'t, 'a>
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