pub struct FieldBoundsChecker;Expand description
Validates that field access indices are in-bounds for a structure.
Implementations§
Source§impl FieldBoundsChecker
impl FieldBoundsChecker
Sourcepub fn check(arity: u32, field_index: u32) -> Result<(), String>
pub fn check(arity: u32, field_index: u32) -> Result<(), String>
Check that the field index is within bounds for the given arity.
Sourcepub fn validate_set(
set: &ProjectionRewriteSet,
reg: &StructureRegistry,
) -> Vec<String>
pub fn validate_set( set: &ProjectionRewriteSet, reg: &StructureRegistry, ) -> Vec<String>
Validate all projection rewrites in a set against a registry.
Auto Trait Implementations§
impl Freeze for FieldBoundsChecker
impl RefUnwindSafe for FieldBoundsChecker
impl Send for FieldBoundsChecker
impl Sync for FieldBoundsChecker
impl Unpin for FieldBoundsChecker
impl UnsafeUnpin for FieldBoundsChecker
impl UnwindSafe for FieldBoundsChecker
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