pub unsafe trait UITextInputTokenizer: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn rangeEnclosingPosition_withGranularity_inDirection(
&self,
position: &UITextPosition,
granularity: UITextGranularity,
direction: UITextDirection,
) -> Option<Retained<UITextRange>>
where Self: Sized + Message { ... }
fn isPosition_atBoundary_inDirection(
&self,
position: &UITextPosition,
granularity: UITextGranularity,
direction: UITextDirection,
) -> bool
where Self: Sized + Message { ... }
fn positionFromPosition_toBoundary_inDirection(
&self,
position: &UITextPosition,
granularity: UITextGranularity,
direction: UITextDirection,
) -> Option<Retained<UITextPosition>>
where Self: Sized + Message { ... }
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§
fn rangeEnclosingPosition_withGranularity_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> Option<Retained<UITextRange>>
fn isPosition_atBoundary_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> bool
fn positionFromPosition_toBoundary_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> Option<Retained<UITextPosition>>
fn isPosition_withinTextUnit_inDirection( &self, position: &UITextPosition, granularity: UITextGranularity, direction: UITextDirection, ) -> bool
Trait Implementations§
Source§impl ProtocolType for dyn UITextInputTokenizer
impl ProtocolType for dyn UITextInputTokenizer
impl<T> ImplementedBy<T> for dyn UITextInputTokenizer
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".