Trait objc2_ui_kit::UILayoutSupport

source ·
pub unsafe trait UILayoutSupport: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn length(&self) -> CGFloat
       where Self: Sized + Message { ... }
    unsafe fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
       where Self: Sized + Message { ... }
    unsafe fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
       where Self: Sized + Message { ... }
    unsafe fn heightAnchor(&self) -> Retained<NSLayoutDimension>
       where Self: Sized + Message { ... }
}
Available on crate feature NSLayoutConstraint only.

Provided Methods§

source

unsafe fn length(&self) -> CGFloat
where Self: Sized + Message,

source

unsafe fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
where Self: Sized + Message,

Available on crate feature NSLayoutAnchor only.
source

unsafe fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
where Self: Sized + Message,

Available on crate feature NSLayoutAnchor only.
source

unsafe fn heightAnchor(&self) -> Retained<NSLayoutDimension>
where Self: Sized + Message,

Available on crate feature NSLayoutAnchor only.

Trait Implementations§

source§

impl ProtocolType for dyn UILayoutSupport

source§

const NAME: &'static str = "UILayoutSupport"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UILayoutSupport

Implementations on Foreign Types§

source§

impl<T> UILayoutSupport for ProtocolObject<T>
where T: ?Sized + UILayoutSupport,

Implementors§