pub trait TextTagTableExt: 'static {
// Required methods
fn add<P: IsA<TextTag>>(&self, tag: &P) -> bool;
fn foreach<P: FnMut(&TextTag)>(&self, func: P);
fn get_size(&self) -> i32;
fn lookup(&self, name: &str) -> Option<TextTag>;
fn remove<P: IsA<TextTag>>(&self, tag: &P);
fn connect_tag_added<F: Fn(&Self, &TextTag) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_tag_changed<F: Fn(&Self, &TextTag, bool) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_tag_removed<F: Fn(&Self, &TextTag) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn add<P: IsA<TextTag>>(&self, tag: &P) -> bool
fn foreach<P: FnMut(&TextTag)>(&self, func: P)
fn get_size(&self) -> i32
fn lookup(&self, name: &str) -> Option<TextTag>
fn remove<P: IsA<TextTag>>(&self, tag: &P)
fn connect_tag_added<F: Fn(&Self, &TextTag) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tag_changed<F: Fn(&Self, &TextTag, bool) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tag_removed<F: Fn(&Self, &TextTag) + '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.