Trait UITextInputTokenizer

Source
pub unsafe trait UITextInputTokenizer: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn rangeEnclosingPosition_withGranularity_inDirection(
        &self,
        position: &UITextPosition,
        granularity: UITextGranularity,
        direction: UITextDirection,
    ) -> Option<Retained<UITextRange>>
       where Self: Sized + Message { ... }
    unsafe fn isPosition_atBoundary_inDirection(
        &self,
        position: &UITextPosition,
        granularity: UITextGranularity,
        direction: UITextDirection,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn positionFromPosition_toBoundary_inDirection(
        &self,
        position: &UITextPosition,
        granularity: UITextGranularity,
        direction: UITextDirection,
    ) -> Option<Retained<UITextPosition>>
       where Self: Sized + Message { ... }
    unsafe fn isPosition_withinTextUnit_inDirection(
        &self,
        position: &UITextPosition,
        granularity: UITextGranularity,
        direction: UITextDirection,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UITextInput only.
Expand description

Provided Methods§

Source

unsafe fn rangeEnclosingPosition_withGranularity_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> Option<Retained<UITextRange>>
where Self: Sized + Message,

Source

unsafe fn isPosition_atBoundary_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> bool
where Self: Sized + Message,

Source

unsafe fn positionFromPosition_toBoundary_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> Option<Retained<UITextPosition>>
where Self: Sized + Message,

Source

unsafe fn isPosition_withinTextUnit_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> bool
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UITextInputTokenizer

Source§

const NAME: &'static str = "UITextInputTokenizer"

The name of the Objective-C protocol that this type represents. Read more
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 UITextInputTokenizer

Implementations on Foreign Types§

Source§

impl<T> UITextInputTokenizer for ProtocolObject<T>

Implementors§