pub struct CheckedBodiesBuilder { /* private fields */ }Expand description
The records that the checker collects while it checks bodies, which only it changes before it publishes them.
Implementations§
Source§impl CheckedBodiesBuilder
impl CheckedBodiesBuilder
pub fn value_use(&self, key: &ValueUseKey) -> Option<&CheckedValueUse>
Sourcepub fn insert_use(&mut self, key: ValueUseKey, value_use: CheckedValueUse)
pub fn insert_use(&mut self, key: ValueUseKey, value_use: CheckedValueUse)
Record value_use for key, which no other record names.
Sourcepub fn insert_callee(&mut self, key: ValueUseKey, callee: CheckedCallee)
pub fn insert_callee(&mut self, key: ValueUseKey, callee: CheckedCallee)
Record callee for key, which no other callee names.
Sourcepub fn insert_equality(
&mut self,
expression: ExpressionId,
recipe: EqualityRecipe,
)
pub fn insert_equality( &mut self, expression: ExpressionId, recipe: EqualityRecipe, )
Record the equality that the comparison expression tests with.
Sourcepub fn insert_implicit_unit(&mut self, if_let: ExpressionId, unit: ExpressionId)
pub fn insert_implicit_unit(&mut self, if_let: ExpressionId, unit: ExpressionId)
Record unit as the value that the if let with no else if_let produces when its pattern does not match.
pub fn insert_struct_literal( &mut self, literal: ExpressionId, record: CheckedStructLiteral, )
pub fn insert_field_selection( &mut self, key: FieldKey, selection: FieldSelection, )
pub fn insert_iterable_kind( &mut self, for_loop: ExpressionId, kind: IterableKind, )
pub fn insert_range_kind(&mut self, range: ExpressionId, kind: RangeKind)
pub fn insert_forwarded_failure_id(&mut self, operand: ExpressionId)
pub fn insert_receiver_generics( &mut self, impl_block: ExpressionId, generics: Vec<(EcoString, Vec<Type>)>, )
pub fn merge(&mut self, other: Self)
Sourcepub fn records(&self) -> &CheckedBodies
pub fn records(&self) -> &CheckedBodies
The records collected so far.
Sourcepub fn publish(self) -> CheckedBodies
pub fn publish(self) -> CheckedBodies
The records as consumers receive them.
Trait Implementations§
Source§impl Clone for CheckedBodiesBuilder
impl Clone for CheckedBodiesBuilder
Source§impl Debug for CheckedBodiesBuilder
impl Debug for CheckedBodiesBuilder
Auto Trait Implementations§
impl Forget for CheckedBodiesBuilder
impl Freeze for CheckedBodiesBuilder
impl Move for CheckedBodiesBuilder
impl RefUnwindSafe for CheckedBodiesBuilder
impl Send for CheckedBodiesBuilder
impl Sync for CheckedBodiesBuilder
impl Unpin for CheckedBodiesBuilder
impl UnsafeUnpin for CheckedBodiesBuilder
impl UnwindSafe for CheckedBodiesBuilder
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