pub trait TextBufferExtManual: IsA<TextBuffer> + 'static {
// Provided methods
fn create_tag(
&self,
tag_name: Option<&str>,
properties: &[(&str, &dyn ToValue)],
) -> Option<TextTag> { ... }
fn insert_with_tags(
&self,
iter: &mut TextIter,
text: &str,
tags: &[&TextTag],
) { ... }
fn insert_with_tags_by_name(
&self,
iter: &mut TextIter,
text: &str,
tags_names: &[&str],
) { ... }
fn connect_insert_text<F: Fn(&Self, &mut TextIter, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn add_commit_notify<P: Fn(&TextBuffer, TextBufferNotifyFlags, u32, u32) + 'static>(
&self,
flags: TextBufferNotifyFlags,
commit_notify: P,
) -> u32 { ... }
}Expand description
Trait containing manually implemented methods of
TextBuffer.
Provided Methods§
Sourcefn create_tag(
&self,
tag_name: Option<&str>,
properties: &[(&str, &dyn ToValue)],
) -> Option<TextTag>
fn create_tag( &self, tag_name: Option<&str>, properties: &[(&str, &dyn ToValue)], ) -> Option<TextTag>
§Panics
If the properties don’t exists or are not writeable.
fn connect_insert_text<F: Fn(&Self, &mut TextIter, &str) + 'static>( &self, f: F, ) -> SignalHandlerId
fn add_commit_notify<P: Fn(&TextBuffer, TextBufferNotifyFlags, u32, u32) + 'static>( &self, flags: TextBufferNotifyFlags, commit_notify: P, ) -> u32
Available on crate feature
v4_16 only.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.