pub unsafe trait NSSpellServerDelegate: NSObjectProtocol {
// Provided methods
unsafe fn spellServer_findMisspelledWordInString_language_wordCount_countOnly(
&self,
sender: &NSSpellServer,
string_to_check: &NSString,
language: &NSString,
word_count: NonNull<NSInteger>,
count_only: bool,
) -> NSRange
where Self: Sized + Message { ... }
fn spellServer_suggestGuessesForWord_inLanguage(
&self,
sender: &NSSpellServer,
word: &NSString,
language: &NSString,
) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message { ... }
fn spellServer_didLearnWord_inLanguage(
&self,
sender: &NSSpellServer,
word: &NSString,
language: &NSString,
)
where Self: Sized + Message { ... }
fn spellServer_didForgetWord_inLanguage(
&self,
sender: &NSSpellServer,
word: &NSString,
language: &NSString,
)
where Self: Sized + Message { ... }
fn spellServer_suggestCompletionsForPartialWordRange_inString_language(
&self,
sender: &NSSpellServer,
range: NSRange,
string: &NSString,
language: &NSString,
) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message { ... }
unsafe fn spellServer_checkGrammarInString_language_details(
&self,
sender: &NSSpellServer,
string_to_check: &NSString,
language: Option<&NSString>,
details: Option<&mut Option<Retained<NSArray<NSDictionary<NSString, AnyObject>>>>>,
) -> NSRange
where Self: Sized + Message { ... }
unsafe fn spellServer_checkString_offset_types_options_orthography_wordCount(
&self,
sender: &NSSpellServer,
string_to_check: &NSString,
offset: NSUInteger,
checking_types: NSTextCheckingTypes,
options: Option<&NSDictionary<NSString, AnyObject>>,
orthography: Option<&NSOrthography>,
word_count: NonNull<NSInteger>,
) -> Option<Retained<NSArray<NSTextCheckingResult>>>
where Self: Sized + Message { ... }
fn spellServer_recordResponse_toCorrection_forWord_language(
&self,
sender: &NSSpellServer,
response: NSUInteger,
correction: &NSString,
word: &NSString,
language: &NSString,
)
where Self: Sized + Message { ... }
}Available on crate feature
NSSpellServer only.Expand description
Provided Methods§
Sourceunsafe fn spellServer_findMisspelledWordInString_language_wordCount_countOnly(
&self,
sender: &NSSpellServer,
string_to_check: &NSString,
language: &NSString,
word_count: NonNull<NSInteger>,
count_only: bool,
) -> NSRange
Available on crate features NSRange and NSString only.
unsafe fn spellServer_findMisspelledWordInString_language_wordCount_countOnly( &self, sender: &NSSpellServer, string_to_check: &NSString, language: &NSString, word_count: NonNull<NSInteger>, count_only: bool, ) -> NSRange
NSRange and NSString only.§Safety
word_count must be a valid pointer.
fn spellServer_suggestGuessesForWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString, ) -> Option<Retained<NSArray<NSString>>>
Available on crate features
NSArray and NSString only.fn spellServer_didLearnWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString, )
Available on crate feature
NSString only.fn spellServer_didForgetWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString, )
Available on crate feature
NSString only.fn spellServer_suggestCompletionsForPartialWordRange_inString_language( &self, sender: &NSSpellServer, range: NSRange, string: &NSString, language: &NSString, ) -> Option<Retained<NSArray<NSString>>>
Available on crate features
NSArray and NSRange and NSString only.Sourceunsafe fn spellServer_checkGrammarInString_language_details(
&self,
sender: &NSSpellServer,
string_to_check: &NSString,
language: Option<&NSString>,
details: Option<&mut Option<Retained<NSArray<NSDictionary<NSString, AnyObject>>>>>,
) -> NSRange
Available on crate features NSArray and NSDictionary and NSRange and NSString only.
unsafe fn spellServer_checkGrammarInString_language_details( &self, sender: &NSSpellServer, string_to_check: &NSString, language: Option<&NSString>, details: Option<&mut Option<Retained<NSArray<NSDictionary<NSString, AnyObject>>>>>, ) -> NSRange
NSArray and NSDictionary and NSRange and NSString only.§Safety
details generic generic should be of the correct type.
Sourceunsafe fn spellServer_checkString_offset_types_options_orthography_wordCount(
&self,
sender: &NSSpellServer,
string_to_check: &NSString,
offset: NSUInteger,
checking_types: NSTextCheckingTypes,
options: Option<&NSDictionary<NSString, AnyObject>>,
orthography: Option<&NSOrthography>,
word_count: NonNull<NSInteger>,
) -> Option<Retained<NSArray<NSTextCheckingResult>>>
Available on crate features NSArray and NSDictionary and NSOrthography and NSString and NSTextCheckingResult only.
unsafe fn spellServer_checkString_offset_types_options_orthography_wordCount( &self, sender: &NSSpellServer, string_to_check: &NSString, offset: NSUInteger, checking_types: NSTextCheckingTypes, options: Option<&NSDictionary<NSString, AnyObject>>, orthography: Option<&NSOrthography>, word_count: NonNull<NSInteger>, ) -> Option<Retained<NSArray<NSTextCheckingResult>>>
NSArray and NSDictionary and NSOrthography and NSString and NSTextCheckingResult only.§Safety
optionsgeneric should be of the correct type.word_countmust be a valid pointer.
fn spellServer_recordResponse_toCorrection_forWord_language( &self, sender: &NSSpellServer, response: NSUInteger, correction: &NSString, word: &NSString, language: &NSString, )
Available on crate feature
NSString only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSSpellServerDelegate
Source§impl ProtocolType for dyn NSSpellServerDelegate
impl ProtocolType for dyn NSSpellServerDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".