pub trait DocumentExt: 'static {
// Required methods
fn get_attribute_value(&self, attribute_name: &str) -> Option<GString>;
fn get_current_page_number(&self) -> i32;
fn get_document_type(&self) -> Option<GString>;
fn get_page_count(&self) -> i32;
fn set_attribute_value(
&self,
attribute_name: &str,
attribute_value: &str,
) -> bool;
fn connect_load_complete<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_load_stopped<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_page_changed<F: Fn(&Self, i32) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_reload<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
Required Methods§
fn get_attribute_value(&self, attribute_name: &str) -> Option<GString>
fn get_current_page_number(&self) -> i32
fn get_document_type(&self) -> Option<GString>
fn get_page_count(&self) -> i32
fn set_attribute_value( &self, attribute_name: &str, attribute_value: &str, ) -> bool
fn connect_load_complete<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_load_stopped<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_page_changed<F: Fn(&Self, i32) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_reload<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.