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 fn as_ref(&self) -> Entry<'_, 'a>
pub const fn id(&self) -> Handle
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_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_use_item(&mut self)
pub fn mark_impl_item(&mut self)
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