Skip to main content

INSLayoutConstraint

Trait INSLayoutConstraint 

Source
pub trait INSLayoutConstraint: PNSObject {
    // Provided methods
    fn p_active(&self) -> bool { ... }
    fn p_set_active(&self, active: bool) { ... }
    fn m_activate_constraints(constraints: NSArray<NSLayoutConstraint>) { ... }
    fn m_deactivate_constraints(constraints: NSArray<NSLayoutConstraint>) { ... }
}
Expand description

A trait containing all the methods for NSLayoutConstraint

Provided Methods§

Source

fn p_active(&self) -> bool

The active state of the constraint.

Source

fn p_set_active(&self, active: bool)

Sets the active state of the constraint.

§Arguments
  • active - The active state of the constraint.
Source

fn m_activate_constraints(constraints: NSArray<NSLayoutConstraint>)

Activates each constraint in the specified array.

§Arguments
  • constraints - The array of constraints to activate.
Source

fn m_deactivate_constraints(constraints: NSArray<NSLayoutConstraint>)

Deactivates each constraint in the specified array.

§Arguments
  • constraints - The array of constraints to deactivate.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§