pub unsafe trait NSTextElementProvider: NSObjectProtocol {
// Provided methods
fn documentRange(&self) -> Retained<NSTextRange>
where Self: Sized + Message { ... }
fn enumerateTextElementsFromLocation_options_usingBlock(
&self,
text_location: Option<&ProtocolObject<dyn NSTextLocation>>,
options: NSTextContentManagerEnumerationOptions,
block: &DynBlock<dyn Fn(NonNull<NSTextElement>) -> Bool + '_>,
) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
where Self: Sized + Message { ... }
fn replaceContentsInRange_withTextElements(
&self,
range: &NSTextRange,
text_elements: Option<&NSArray<NSTextElement>>,
)
where Self: Sized + Message { ... }
fn synchronizeToBackingStore(
&self,
completion_handler: Option<&DynBlock<dyn Fn(*mut NSError)>>,
)
where Self: Sized + Message { ... }
fn locationFromLocation_withOffset(
&self,
location: &ProtocolObject<dyn NSTextLocation>,
offset: NSInteger,
) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
where Self: Sized + Message { ... }
fn offsetFromLocation_toLocation(
&self,
from: &ProtocolObject<dyn NSTextLocation>,
to: &ProtocolObject<dyn NSTextLocation>,
) -> NSInteger
where Self: Sized + Message { ... }
fn adjustedRangeFromRange_forEditingTextSelection(
&self,
text_range: &NSTextRange,
for_editing_text_selection: bool,
) -> Option<Retained<NSTextRange>>
where Self: Sized + Message { ... }
}Available on crate feature
NSTextContentManager only.Expand description
Provided Methods§
fn documentRange(&self) -> Retained<NSTextRange>
Available on crate feature
NSTextRange only.fn enumerateTextElementsFromLocation_options_usingBlock( &self, text_location: Option<&ProtocolObject<dyn NSTextLocation>>, options: NSTextContentManagerEnumerationOptions, block: &DynBlock<dyn Fn(NonNull<NSTextElement>) -> Bool + '_>, ) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
Available on crate features
block2 and NSTextElement and NSTextRange only.fn replaceContentsInRange_withTextElements( &self, range: &NSTextRange, text_elements: Option<&NSArray<NSTextElement>>, )
Available on crate features
NSTextElement and NSTextRange only.fn synchronizeToBackingStore( &self, completion_handler: Option<&DynBlock<dyn Fn(*mut NSError)>>, )
Available on crate feature
block2 only.fn locationFromLocation_withOffset( &self, location: &ProtocolObject<dyn NSTextLocation>, offset: NSInteger, ) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
Available on crate feature
NSTextRange only.fn offsetFromLocation_toLocation( &self, from: &ProtocolObject<dyn NSTextLocation>, to: &ProtocolObject<dyn NSTextLocation>, ) -> NSInteger
Available on crate feature
NSTextRange only.fn adjustedRangeFromRange_forEditingTextSelection( &self, text_range: &NSTextRange, for_editing_text_selection: bool, ) -> Option<Retained<NSTextRange>>
Available on crate feature
NSTextRange only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSTextElementProvider
Source§impl ProtocolType for dyn NSTextElementProvider
impl ProtocolType for dyn NSTextElementProvider
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".