Skip to main content

luaur_analysis/methods/
constraint_operator_assign.rs

1impl crate::records::constraint::Constraint {
2    /// In C++, this method is deleted to prevent copying.
3    /// In Rust, `Constraint` does not implement `Clone` or `Copy`,
4    /// so an explicit assignment operator is not provided.
5    #[allow(dead_code)]
6    pub fn constraint_operator_assign(
7        &mut self,
8        _other: &crate::records::constraint::Constraint,
9    ) -> &mut crate::records::constraint::Constraint {
10        panic!("Constraint is not assignable");
11    }
12}