Trait objc2_ui_kit::UITextInputTokenizer
source · pub unsafe trait UITextInputTokenizer: NSObjectProtocol + IsMainThreadOnly {
// 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.