Trait SearchContextExt

Source
pub trait SearchContextExt: 'static {
Show 26 methods // Required methods fn backward(&self, iter: &TextIter) -> Option<(TextIter, TextIter)>; fn backward2(&self, iter: &TextIter) -> Option<(TextIter, TextIter, bool)>; fn backward_async<P: IsA<Cancellable>, Q: FnOnce(Result<(TextIter, TextIter), Error>) + Send + 'static>( &self, iter: &TextIter, cancellable: Option<&P>, callback: Q, ); fn backward_async_future( &self, iter: &TextIter, ) -> Pin<Box_<dyn Future<Output = Result<(TextIter, TextIter), Error>> + 'static>>; fn forward(&self, iter: &TextIter) -> Option<(TextIter, TextIter)>; fn forward2(&self, iter: &TextIter) -> Option<(TextIter, TextIter, bool)>; fn forward_async<P: IsA<Cancellable>, Q: FnOnce(Result<(TextIter, TextIter), Error>) + Send + 'static>( &self, iter: &TextIter, cancellable: Option<&P>, callback: Q, ); fn forward_async_future( &self, iter: &TextIter, ) -> Pin<Box_<dyn Future<Output = Result<(TextIter, TextIter), Error>> + 'static>>; fn get_buffer(&self) -> Option<Buffer>; fn get_highlight(&self) -> bool; fn get_match_style(&self) -> Option<Style>; fn get_occurrence_position( &self, match_start: &TextIter, match_end: &TextIter, ) -> i32; fn get_occurrences_count(&self) -> i32; fn get_regex_error(&self) -> Option<Error>; fn get_settings(&self) -> Option<SearchSettings>; fn replace( &self, match_start: &TextIter, match_end: &TextIter, replace: &str, ) -> Result<(), Error>; fn replace2( &self, match_start: &mut TextIter, match_end: &mut TextIter, replace: &str, ) -> Result<(), Error>; fn replace_all(&self, replace: &str) -> Result<u32, Error>; fn set_highlight(&self, highlight: bool); fn set_match_style(&self, match_style: Option<&Style>); fn set_settings<P: IsA<SearchSettings>>(&self, settings: Option<&P>); fn connect_property_highlight_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_match_style_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_occurrences_count_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_regex_error_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_settings_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn backward(&self, iter: &TextIter) -> Option<(TextIter, TextIter)>

Source

fn backward2(&self, iter: &TextIter) -> Option<(TextIter, TextIter, bool)>

Source

fn backward_async<P: IsA<Cancellable>, Q: FnOnce(Result<(TextIter, TextIter), Error>) + Send + 'static>( &self, iter: &TextIter, cancellable: Option<&P>, callback: Q, )

Source

fn backward_async_future( &self, iter: &TextIter, ) -> Pin<Box_<dyn Future<Output = Result<(TextIter, TextIter), Error>> + 'static>>

Source

fn forward(&self, iter: &TextIter) -> Option<(TextIter, TextIter)>

Source

fn forward2(&self, iter: &TextIter) -> Option<(TextIter, TextIter, bool)>

Source

fn forward_async<P: IsA<Cancellable>, Q: FnOnce(Result<(TextIter, TextIter), Error>) + Send + 'static>( &self, iter: &TextIter, cancellable: Option<&P>, callback: Q, )

Source

fn forward_async_future( &self, iter: &TextIter, ) -> Pin<Box_<dyn Future<Output = Result<(TextIter, TextIter), Error>> + 'static>>

Source

fn get_buffer(&self) -> Option<Buffer>

Source

fn get_highlight(&self) -> bool

Source

fn get_match_style(&self) -> Option<Style>

Source

fn get_occurrence_position( &self, match_start: &TextIter, match_end: &TextIter, ) -> i32

Source

fn get_occurrences_count(&self) -> i32

Source

fn get_regex_error(&self) -> Option<Error>

Source

fn get_settings(&self) -> Option<SearchSettings>

Source

fn replace( &self, match_start: &TextIter, match_end: &TextIter, replace: &str, ) -> Result<(), Error>

Source

fn replace2( &self, match_start: &mut TextIter, match_end: &mut TextIter, replace: &str, ) -> Result<(), Error>

Source

fn replace_all(&self, replace: &str) -> Result<u32, Error>

Source

fn set_highlight(&self, highlight: bool)

Source

fn set_match_style(&self, match_style: Option<&Style>)

Source

fn set_settings<P: IsA<SearchSettings>>(&self, settings: Option<&P>)

Source

fn connect_property_highlight_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_match_style_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_occurrences_count_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_regex_error_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_settings_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§