pub struct Constraint { /* private fields */ }Implementations§
Source§impl Constraint
impl Constraint
Sourcepub fn constraint_constraint()
pub fn constraint_constraint()
C++ Constraint(const Constraint&) = delete; — the deleted copy ctor
(the real ctor is Constraint::constraint_not_null_scope_location_constraint_v);
never callable in C++ either.
Source§impl Constraint
impl Constraint
Sourcepub fn constraint_not_null_scope_location_constraint_v(
scope: NonNull<Scope>,
location: &Location,
c: ConstraintV,
) -> Self
pub fn constraint_not_null_scope_location_constraint_v( scope: NonNull<Scope>, location: &Location, c: ConstraintV, ) -> Self
C++ Constraint::Constraint(NotNull<Scope> scope, const Location& location, ConstraintV&& c)
(Constraint.cpp:12-17).
Source§impl Constraint
impl Constraint
pub fn get_maybe_mutated_types(&self) -> (TypeIds, TypePackIds)
Source§impl Constraint
impl Constraint
Sourcepub fn constraint_operator_assign(
&mut self,
_other: &Constraint,
) -> &mut Constraint
pub fn constraint_operator_assign( &mut self, _other: &Constraint, ) -> &mut Constraint
In C++, this method is deleted to prevent copying.
In Rust, Constraint does not implement Clone or Copy,
so an explicit assignment operator is not provided.
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for Constraint
impl !Sync for Constraint
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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